From owner-freebsd-bugs Mon Jan 11 10:10:10 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA06071 for freebsd-bugs-outgoing; Mon, 11 Jan 1999 10:10:10 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from george.lbl.gov (george.lbl.gov [131.243.2.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA06066 for ; Mon, 11 Jan 1999 10:10:09 -0800 (PST) (envelope-from jin@george.lbl.gov) Received: (from jin@localhost) by george.lbl.gov (8.8.8/8.8.8) id JAA20153; Mon, 11 Jan 1999 09:55:30 -0800 (PST) Date: Mon, 11 Jan 1999 09:55:30 -0800 (PST) From: Jin Guojun (FTG staff) Message-Id: <199901111755.JAA20153@george.lbl.gov> To: casper@acc.am, freebsd-bugs@FreeBSD.ORG Subject: Re: Example (BPF device programming) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Here is a small program, that demonstrates basic programming of BPF device. > I think it must go to the /usr/share/examples You should test your program before submiting: /tmp/temp/bpf: make gcc -c -g -DDEBUG -I/usr/include -I/usr/local/include bpf.c -o bpf.o bpf.c:24: parse error before `.' bpf.c: In function `main': bpf.c:139: `if_data' undeclared (first use this function) bpf.c:139: (Each undeclared identifier is reported only once bpf.c:139: for each function it appears in.) bpf.c: At top level: bpf.c:205: parse error before `.' *** Error code 1 bpf.c 25:char *if_type(); net/if.h 171:#define if_type if_data.ifi_type To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message