What steps will reproduce the problem?
1. Run "test/dnet/dnet intf show"
What is the expected output? What do you see instead?
The expected output is shown later on (using my patch). I currently get this
instead:
fwip0: flags=0x30<BROADCAST,MULTICAST> mtu 1500
dnet: intf_loop: Device not configured
What version of the product are you using? On what operating system?
SVN checkout (but most likely present for some time). I'm running NetBSD
-current (5.99.39).
Please provide any additional information below.
I've attached a patch for fix this by correcting the NEXTIFR() macro in intf.c.
NetBSD put a sockaddr_storage in the ifreq ifr_ifru union, so using
sizeof(i->ifr_addr) won't work (it's still sockaddr), but for other systems
using only sockaddrs, sizeof(ifr_addr) should always equal sizeof(ifr_ifru)
anyway.
Oh, I didn't notice any max() or MAX() defined or used in libdnet, but the
patch could be use it if available. I just didn't see any sense adding it for
only this, though.
fwip0: flags=0x30<BROADCAST,MULTICAST> mtu 1500
vr0: flags=0x30<BROADCAST,MULTICAST> mtu 1500
link 00:11:d8:42:94:29
alias fe80:2::211:d8ff:fe42:9429/64
lo0: flags=0x23<UP,LOOPBACK,MULTICAST> mtu 33192
inet 127.0.0.1/8
alias ::1
alias fe80:3::1/64
ppp0: flags=0x25<UP,POINTOPOINT,MULTICAST> mtu 1500
inet 192.168.1.2/24 --> 192.168.1.1
alias fe80:4::2e0:1800:ca:ee7a/64
Original issue reported on code.google.com by katterj...@gmail.com on 21 Sep 2010 at 5:38
Original issue reported on code.google.com by
katterj...@gmail.com
on 21 Sep 2010 at 5:38Attachments: