Re: Debian Gnu/Hurd - Configure Network

2012-07-13 Thread Thomas Schwinge
Hi!

(Taking this to bug-hurd.)


On Fri, 1 Jun 2012 18:36:07 +0200, Samuel Thibault samuel.thiba...@gnu.org 
wrote:
 zac storer, le Thu 31 May 2012 16:46:55 -0600, a écrit :
  I am also following the debian hurd mailing list, namely: http://
  lists.debian.org/debian-hurd/2012/05/msg00043.html .
  I have updated the hurd, gnumach, netdde, and isc-dhcp-client packages.
  Everything seems to be fine.
  I then issue a dhclient -v /dev/eth0, and get the following error:
  
  ../../../../lib/isc/unix/socket.c:5636: setsockopt(21, IPV6_V6ONLY) failed: 
  (?)
  (?)
  ... Copyright info here ...
  
  fsysopts: /servers/socket/2: -i /dev/eth0: (ipc/mig) server died
  Error getting hardware address for /dev/eth0: No such device

I'm seeing the same.  (The second (?) being a heart symbol, how cute.)

 Which probably means the DDE driver just didn't find your device.  Or
 perhaps simply lacks the firmware.

Nope, if I manually configure with fsysopts, it does work fine (3c905B
NIC).


 Use the following to get debugging
 information from the DDE driver:
 
 settrans -fgap /dev/netdde /hurd/netdde
 
 and then kill any devnode and pfinet process to let them restart with
 the newer netdde.

I did this earlier, which NetDDE/GNU Mach countered with some message
whose text I have forgotten, but perhaps something related to
memory-management things, and shortly after I noticed that invoking diff
would fail with a SEGFAULT.  GDB wasn't helpful (told me diff failed at
PC 0).  Fixed by re-installing the very same diffutils package: »dpkg
-i /var/cache/apt/...«.  Shortly after, invoking less failed the same
way...  I rebooted -- recovered.  Perhaps some issues in memory
management in DDE/the respective GNU Mach parts after killing a NetDDE
instance?


Grüße,
 Thomas


pgppKHMj35mDr.pgp
Description: PGP signature


Re: Debian Gnu/Hurd - Configure Network

2012-07-13 Thread Thomas Schwinge
Hi!

On Fri, 13 Jul 2012 12:18:44 +0200, I wrote:
 On Fri, 1 Jun 2012 18:36:07 +0200, Samuel Thibault samuel.thiba...@gnu.org 
 wrote:
  zac storer, le Thu 31 May 2012 16:46:55 -0600, a écrit :
   I am also following the debian hurd mailing list, namely: http://
   lists.debian.org/debian-hurd/2012/05/msg00043.html .
   I have updated the hurd, gnumach, netdde, and isc-dhcp-client packages.
   Everything seems to be fine.
   I then issue a dhclient -v /dev/eth0, and get the following error:
   
   ../../../../lib/isc/unix/socket.c:5636: setsockopt(21, IPV6_V6ONLY) 
   failed: (?)
   (?)
   ... Copyright info here ...
   
   fsysopts: /servers/socket/2: -i /dev/eth0: (ipc/mig) server died
   Error getting hardware address for /dev/eth0: No such device
 
 I'm seeing the same.  (The second (?) being a heart symbol, how cute.)
 
  Which probably means the DDE driver just didn't find your device.  Or
  perhaps simply lacks the firmware.
 
 Nope, if I manually configure with fsysopts, it does work fine (3c905B
 NIC).

In fact, »dhclient -v /dev/eth0« also seems to work fine (but the
setsockopt error remains; not fatal apparently).

To resolve this, apply the following patch:

--- /etc/network/interfaces~2011-05-20 19:46:45.0 +0200
+++ /etc/network/interfaces 2012-07-13 12:34:40.0 +0200
@@ -6,5 +6,5 @@
 iface lo inet loopback
 
 # The primary network interface
-auto eth0
-iface eth0 inet dhcp
+auto /dev/eth0
+iface /dev/eth0 inet dhcp

Remaining (likewise non-fatal, as it seems) issue: »can't create
/var/lib/dhcp/dhclient./dev/eth0.leases: No such file or directoy«, which
is only seen during boot, but not when running dhclient manually.
Obviously using /dev/eth0 instead of eth0 is the culprit here.


Grüße,
 Thomas


pgpl0HIW6trmJ.pgp
Description: PGP signature