Package: fake
Version: 1.1.10-1

I use send_arp for sending gratuitous ARP messages.
The ARP messages are sent out fine, however the kernel (2.6.20.2 from 
kernel.org) complains about
"send_arp uses obsolete (PF_INET,SOCK_PACKET)" when calling dmesg.

Sending the gratuitous ARP is done in a script that looks like:
----------
#!/bin/bash
IP="192.168.10.10"  # The IP of eth0
send_arp $IP `cat /sys/class/net/eth0/address` $IP `cat 
/sys/class/net/eth0/broadcast`
------------

I have looked into the source code of send_arp. It uses 
sock=socket(AF_INET,SOCK_PACKET,htons(ETH_P_RARP));
to create a socket which is obsolete since kernel 2.2 (man packet).
However, I do not know how to migrate from the "old" socket(AF_INET, 
SOCK_PACKET, ...)
to the newer socket(PF_PACKET, SOCK_RAW, ...)

Regards

Mathias

-- 
Mathias Koehrer
[EMAIL PROTECTED]


Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur  39,85 €  inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2

Reply via email to