Re: Gratuitous ARP/RAW sockets under Linux

Bernd Eckenfels (ukd1@rzstud1.rz.uni-karlsruhe.de)
4 Feb 1996 21:53:28 GMT


Vipul Gupta (vgupta@cs.binghamton.edu) wrote:
> a) It appears to me that as of linux-1.3.59, the networking
> code does not implement gratuitous ARP. I am looking into
> adding this feature (it is useful for Mobile-IP) and would
> like to know if someone is already working on it.

What do u mean with this? Broadcasting ARP Replies? I think this will not
work on most Systems who are conforming to the RFCs. Why isnt Proxy ARP
enough?

> b) My second question is -- Is there an example code fragment that
> shows how to generate ethernet encapsulated IP messages from
> user space (with root privileges) in which various ethernet fields
> (dest addr, Type) and IP fields (e.g. TTL) can be controlled by the
> user? RAW sockets should be usbale in this fashion but
> the man pages don't say much about RAW sockets.

Just take a look into ping.c or traceroute.c.

Greetings
Bernd

-- 
  (OO)      -- Bernd_Eckenfels@Wittumstrasse13.76646Bruchsal.de --
 ( .. )  ecki@lina.{inka.de,ka.sub.org}  http://home.pages.de/~eckes/
  o--o     *plush*  2048/93600EFD  eckes@irc  +4972573817  *plush*
(O____O)       If privacy is outlawed only Outlaws have privacy