interface name bug under *BSD?

Aragon Gouveia aragon at phat.za.net
Fri Jan 7 22:31:36 CET 2011


Hi,

I'm running FreeBSD 8.1 and started using Bird 1.2.5 for the first time 
today, but it kept finding interfaces with garbled names, eg.

Jan  7 20:10:23 <daemon.debug> soek bird: WUG < interface bridge0^B^KM- 
\xf8L\xf8 goes up
Jan  7 20:10:23 <daemon.debug> soek bird: WUG < primary address 
172.18.87.128/28 on interface bridge0^B^KM- \xf8L\xf8 added

On closer inspection I think I've discovered a problem in 
sysdep/bsd/krt-sock.c in that it fails to use dl->sdl_nlen when 
extracting the interface name from dl->sdl_data.  According to 
<net/if_dl.h> the interface name in sdl_data does not require null 
termination.

Possible patch attached.  Could someone review this please?


Thanks,
Aragon
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bird-ifname.txt
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20110107/efc48ad3/attachment.txt>


More information about the Bird-users mailing list