Re: [PATCH] using an interface without IP address

Frédéric Raynal <[email protected]>
Newsgroups gmane.comp.security.libnet
Message-ID <20040129062125.A15316@batman>
On Thu, Jan 29, 2004 at 12:10:09AM +0100, Domenico Andreoli wrote:
> Mike Schiffman wrote:
> > Hey guys, just a quick note, this is applied to the latest 1.1.2 tree 
> > which I probably will release in the short term to make this 
> > functionality available. Thanks to Fred and Ste Jones. This looks like 
> > it works!
> > 
> 
> hmmm.. i just compiled 1.1.2rc4 but it does not seem fixed to me :(

Currently, I still havent found the ioct() giving me all the devices,
even those that are down (I even sent a mail to net-linux to get the
solution but got no answer).  So, results bellow are "normal"


> # ifconfig eth1; ifdown eth1; arping -i eth1 192.168.70.70; ifup eth1
> arping: libnet_init(): libnet_select_device(): no such device found: eth1.

Normal, eth1 is down.

> 
> # ifdown eth1; arping -i eth1 192.168.70.70; ifup eth1
> arping: libnet_init(): libnet_select_device(): no such device found: eth1.


Nnormal, eth1 is down.

> 
> # ifdown eth1; ifconfig eth1 0.0.0.0 up; arping -i eth1 192.168.70.70; ifup eth1
> arping: libnet_get_ipaddr4(libnet): libnet_get_ipaddr4(): ioctl(): Cannot assign requested address

??? Where does "libnet_get_ipaddr4(libnet)" comes from ?

> 
> #
> 
> here at debian libnet is compiled also as dynamic library so i did not recompile arping
> (my patch to achieve dynamic shareds is always available, just ask) to produce the above
> results. recompiling arping as static executable anyway does not change them.
> 

Also normal.


If you mean it worked with libnet-1.0 when device is down, I'll have a
look there.

	Fred Raynal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.