Alter.Org.UA  
 << Back Home RU ru   Donate Donate www/www1/www2

Fix for Ethernet address output format in FreeBSD NDP

by Alter (alterX@alter.org.ua (remove X))

The original version of ndp displays ehternet addresses without leading '0' characters in octets. For example 00:01:ff:88:0a:0b is displayed as 0:1:ff:88:a:b. It is inconvenient both for human reading and machine parsing. Such behavior appears due to '%x' format modified instead of '%2.2x'. Please, find patch below.

Patch download:
7.xfbsd7-ndp-ether_str.20120614.patch.gz

FreeBSD bugtrack ID: 169075

2012.06.14

PS. Patch is commited to RELENG_7. There is not problem with RELENG_8 since it uses link_ntoa().


2012.07.03


Mail to alterX@alter.org.ua (remove X)  
designed by Alter aka Alexander A. Telyatnikov powered by Apache+PHP under FBSD © 2002-2017