
mbeattie at clueful
Nov 6, 2001, 4:55 PM
Post #3 of 4
(166 views)
Permalink
|
Alan Robertson writes: > David Lang wrote: > > > > with 0.4.9 on 2.4.14 kernels I get a message > > send_arp uses obsolete (PF_INET,SOCK_PACKET) > > when it takes over the IP addresses. > > I've seen it too. > > I have no idea what it's complaining about (or how to fix it). Patches are > being accepted ;-) socket(PF_INET, SOCK_PACKET, protocol) was deprecated in 2.2 and causes visible moans in 2.4. I assume (having only seen its name) that send_arp fakes up a gratuitous ARP which is why it's contructing a raw packet. The "proper" way to do that these days would be to use the PF_PACKET family with type SOCK_DGRAM (unless you have to fake up the ethernet destination address beyond what you the sockaddr_ll lets you already do in which case you want SOCK_RAW). See "man 7 packet" for details. --Malcolm -- Malcolm Beattie <mbeattie [at] clueful> Linux Technical Consultant IBM EMEA Enterprise Server Group... ...from home, speaking only for myself
|