From owner-freebsd-hackers Mon Jul 8 06:56:11 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA05074 for hackers-outgoing; Mon, 8 Jul 1996 06:56:11 -0700 (PDT) Received: from badboy.wisetech.com (badboy.wisetech.com [205.231.232.76]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id GAA05069 for ; Mon, 8 Jul 1996 06:56:09 -0700 (PDT) Received: from badboy.wisetech.com (localhost [127.0.0.1]) by badboy.wisetech.com (8.6.12/8.6.9) with SMTP id JAA10956; Mon, 8 Jul 1996 09:55:21 -0400 Message-ID: <31E11348.167EB0E7@wisetech.com> Date: Mon, 08 Jul 1996 09:55:20 -0400 From: Rick Weldon Organization: Weldon Internet SEcurity Technologies X-Mailer: Mozilla 2.0 (X11; I; FreeBSD 2.1.0-RELEASE i386) MIME-Version: 1.0 To: "K.V.S. Sankaram" CC: hackers@freebsd.org Subject: Re: References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk K.V.S. Sankaram wrote: > > 1) When I am trying to use the BPF function in FREEBSD by including the header > files, the compiler is showing parse errors in the header file. If that is > the case then how come kernel compilation could succeed ? Also, the FREEBSD > tcpdump command, which uses BPF, is working fine. > You are probably missing: #include #include There could be others depending on what you are doing. I am writing an app now that uses all parts of the packet handed in by bpf and I require the following headers. #include #include #include #include #include #include #include #include #include #include #include #include #include #include > 2) Is not the function ftok() system call, used in SYSTEM V IPC, supported by > FREEBSD ? It is not present in any of the header files. Check "man ftok". It should be there. Rick