From owner-freebsd-hackers Tue Jun 3 18:07:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA06550 for hackers-outgoing; Tue, 3 Jun 1997 18:07:31 -0700 (PDT) Received: from uw2cs003.cuscal.com.au (proxy.cuscal.com.au [168.217.251.201]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA06532 for ; Tue, 3 Jun 1997 18:07:17 -0700 (PDT) Message-Id: <199706040107.SAA06532@hub.freebsd.org> Received: from nt2cs006.cuscal.com.au ([168.217.2.1]) by uw2cs003.cuscal.com.au (Netscape Mail Server v2.02) with ESMTP id AAA11745 for ; Wed, 4 Jun 1997 11:06:41 +1000 Received: by nt2cs006.cuscal.COM.AU with Internet Mail Service (5.0.1457.3) id ; Wed, 4 Jun 1997 11:05:36 +1000 From: MARK SAYER To: "'freebsd-hackers@freebsd.org'" Subject: IPPROTO_IPDIVERT undeclared error in natd Date: Wed, 4 Jun 1997 11:04:42 +1000 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1457.3) Content-Type: text/plain Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I'm happy to say that I am making progress with this...but still having trouble. Trying to make the natd binaries..I finally got my in_cksum.h and got passed that hurdle....but now I am getting an undeclared error in the natd.c source. I get the following error at compilation: ===> alias ===> natd cc -O -Wall -g -I../alias -c natd.c natd.c: In function `main': natd.c:178: `IPPROTO_DIVERT' undeclared (first use this function) natd.c:178: (Each undeclared identifier is reported only once natd.c:178: for each function it appears in.) *** Error code 1 Stop. *** Error code 1 Stop. This is the source code that is referring to IPPROTO_IPDIVERT /* * Create divert sockets. Use only one socket if -p was specified * on command line. Otherwise, create separate sockets for * outgoing and incoming connnections. */ if (inOutPort) { divertInOut = socket (PF_INET, SOCK_RAW, IPPROTO_DIVERT); if (divertInOut == -1) Quit ("Unable to create divert socket."); divertIn = -1; divertOut = -1; Where should this have been declared? I have recompiled my kernel with the IP_FIREWALL And IP_DIVERT options and am running Walnut Creek FreeBSD 2.1.6-RELEASE #0 Mark.