Bug#219108: [PATCH] using an interface without IP address

Chris Hanson <[email protected]>
Newsgroups gmane.comp.security.libnet
Message-ID <[email protected]>
   Date: Fri, 27 Feb 2004 11:44:47 -0800
   From: Mike Schiffman <[email protected]>

   I'm sorry, what bug does this fix, and which release did you diff
   against? 1.1.2-rc5 has Linux support for interfaces without IP
   addresses. Was there a problem with that code?

   On Feb 27, 2004, at 10:02 AM, Chris Hanson wrote:

   > OK, I've made an appropriate patch to fix the problem, which is
   > attached to this message.  This is a patch against version 1.1.1.
   >
   > I've tested it and as far as I can tell it fixes the problem.  Feel
   > free to massage as needed to fit your style.
   >
   > The next upload of the Debian package will contain this patch, which
   > will close the two bugs filed against it.
   >
   > Chris
   >
   > <libnet_if_addr.c-patch>
   --
   Mike Schiffman, CISSP
   http://www.packetfactory.net/schiffman
   Doveryay No Proveryay

No, now that I look at it you have pretty much the same functionality
there.  As you can see, my previous message says it was a diff against
1.1.1.

My message was a follow-up from this message.  Obviously some more
work got done, but it was not reported back to the recipients of this
message.

Sorry for the confusion.

Chris

----------------------------------------------------------------------
Date: Thu, 29 Jan 2004 06:21:25 +0100
From: =?iso-8859-1?Q?Fr=E9d=E9ric_Raynal?= <[email protected]>
To: Domenico Andreoli <[email protected]>
Cc: [email protected], [email protected],
	Frederic Raynal <[email protected]>
Subject: Re: [PATCH] using an interface without IP address

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.