From owner-freebsd-net Wed Dec 2 10:40:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA21096 for freebsd-net-outgoing; Wed, 2 Dec 1998 10:40:47 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: (from jmb@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA21084; Wed, 2 Dec 1998 10:40:40 -0800 (PST) (envelope-from jmb) From: "Jonathan M. Bresler" Message-Id: <199812021840.KAA21084@hub.freebsd.org> Subject: Re: In-Reply-To: <366549C1.22F0A27E@softweyr.com> from Wes Peters at "Dec 2, 98 07:08:01 am" To: wes@softweyr.com (Wes Peters) Date: Wed, 2 Dec 1998 10:40:40 -0800 (PST) Cc: caroline.beauchamps@bt-sys.bt.co.uk, net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Wes Peters wrote: > Caroline Beauchamps wrote: [snip] > > > > sockid=socket (AF_INET, SOCK_PACKET, htons(ETH_P_802_3)) [snip] > > If you wish to send raw packets on the ethernet, you will have to > use the Berkeley Packet Filter (bpf). It's a bit messier than the > Linux raw packet interface, but works. you can also use raw sockets...take a look at the file tcpip.c in the nmap port. it has functions for sending tcp, udp, icmp....not suggesting that you adopt the coding style there. jmb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message