Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Dec 1998 10:40:40 -0800 (PST)
From:      "Jonathan M. Bresler" <jmb>
To:        wes@softweyr.com (Wes Peters)
Cc:        caroline.beauchamps@bt-sys.bt.co.uk, net@FreeBSD.ORG
Subject:   Re: 
Message-ID:  <199812021840.KAA21084@hub.freebsd.org>
In-Reply-To: <366549C1.22F0A27E@softweyr.com> from Wes Peters at "Dec 2, 98 07:08:01 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812021840.KAA21084>