retitle 549192 guessnet fails when interface is down: Unknown pcap error
thanks

On 2009-10-01 13:28:59 +0200, Vincent Lefevre wrote:
> While guessnet works fine after booting, it always fails at boot time.

I've done tests, and in fact, the problem occurs only when the
interface is down. For instance, if I do the following, I get
the pcap error:

  /etc/init.d/networking stop
  echo 'home peer 192.168.0.1 00:00:c5:b4:98:74' | guessnet --debug -v eth0

I've also tried the --init-time=10 and --init-delay=10 options,
but they have no effect.

The error disappears after typing "ifconfig eth0 up".

The following workaround works:

* Create a script /usr/local/sbin/guessnet-wrapper

#!/bin/sh
ifconfig "$1" up
sleep 1
exec guessnet -i "$@"

Note: the "sleep 1" is important.

* Modify /etc/network/interfaces to use "script guessnet-wrapper"
instead of "script guessnet-ifupdown".

-- 
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