On 2009-10-01 23:11:51 +0100, Enrico Zini wrote:
> This is odd: guessnet does try to bring the interface up if it is down:
> 
> > Thu Oct  1 09:38:46 2009: guessnet: Interface eth0 was down: initializing 
> > for broadcast
> 
> so apparently the method that guessnet is using is somehow not working
> for your network interface. I think I took the code from ifconfig, even.
> After bringing the interface up, guessnet polls it to see when it comes
> up, and if it doesn't it will complain. The code is in src/IFace.cc, in
> IFace::initBroadcast.

Well, I'd say that guessnet may correctly bring the interface up,
but it should wait before using pcap (with my workaround, I needed
a "sleep 1" to avoid the pcap error). Or you could add another
option like --init-delay and --init-time to introduce a delay at
the right time (--init-delay introduces a delay before guessnet
brings the interface up and --init-time introduces a delay after
the pcap error, so that these options are useless in my case):
just after the interface has been brought up.

> Or it could be that pcap in your case fails if the interface is
> configured for broadcast. After you do "ifconfig eth0 up", do you
> have an IP address assigned to the interface?

Not always. Whether there's one or not, the behavior is the same:
it works.

> What if you instead do "ifconfig eth0 0.0.0.0 up": would it still
> work?

Yes, it does.

-- 
Vincent Lefèvre <vinc...@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to