Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: No address anymore for 5.99.6 dhclient with 5.99.7 kernel ?



On Mon, Jan 12, 2009 at 05:53:11PM -0500, Christos Zoulas wrote:
> On Jan 12,  9:58pm, njoly%pasteur.fr@localhost (Nicolas Joly) wrote:
> -- Subject: Re: No address anymore for 5.99.6 dhclient with 5.99.7 kernel ?
> 
> | On Mon, Jan 12, 2009 at 04:34:45PM +0000, Christos Zoulas wrote:
> | > In article <20090112140814.GA26330%medusa.sis.pasteur.fr@localhost>,
> | > Nicolas Joly  <njoly%pasteur.fr@localhost> wrote:
> | [...]
> | > Make sure you have COMPAT_50 in your kernel config, otherwise
> | > getifaddrs does not work. I.e. ifconfig -a will fail with EINVAL.
> | > (it is mentioned in UPDATING)
> | 
> | I already thought about it, and i think i have it.
> | 
> | njoly@lanfeust [~]> sysctl machdep.booted_kernel
> | machdep.booted_kernel = netbsd
> | njoly@lanfeust [~]> file /netbsd
> | /netbsd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically 
> linked, for NetBSD 5.99.7, not stripped
> | njoly@lanfeust [~]> config -x /netbsd | grep COMPAT_50
> | ###> options    COMPAT_50       # NetBSD 5.0
> | 
> 
> Do you have:
> 
> compat_50_iflist
> compat_50_rt_ifmsg
> 
> in your kernel?

Yes, both.

njoly@lanfeust [~]> nm /netbsd | grep compat_50_iflist 
ffffffff80770c10 T compat_50_iflist
njoly@lanfeust [~]> nm /netbsd | grep compat_50_rt_ifmsg
ffffffff80770d30 T compat_50_rt_ifmsg

> Does ifconfig -a work?

Yes, looks fine.

njoly@lanfeust [~]> ifconfig -a
fwip0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        address: 00:e0:81:00:00:30:8d:71
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        
capabilities=3f00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx>
        
enabled=3f00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx>
        address: 00:e0:81:31:59:61
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet 157.99.xx.xx netmask 0xffffff00 broadcast 157.99.xx.255
        inet6 fe80::2e0:81ff:fe31:5961%bge0 prefixlen 64 scopeid 0x2
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33648
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.


Home | Main Index | Thread Index | Old Index