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

Bug#630911: please provide link_ntoa()

On Sat, 2011-06-18 at 19:10:46 +0200, Robert Millan wrote:
> Package: libbsd-dev
> Version: 0.2.0-1
> Severity: wishlist
> Please provide link_ntoa() so that it can be removed from
> [freebsd-utils]/debian/patches/030_arp_libbsd.diff
> Implementation from FreeBSD is available in:
> http://svnweb.freebsd.org/base/head/lib/libc/net/linkaddr.c?revision=165903&view=markup

The problem with link_ntoa() is that it relies on the BSD specific
‘struct sockaddr_dl’ which for example does not match any Linux
sockaddr structure, the closes one is sockaddr_ll, but not quite the
same, also no standard function returns such type, so the code has to
be ported anyway. As such I don't think libbsd is the correct place
for that function.


Reply to: