Alter.Org.UA
 << Back Home UK uk   Donate Donate

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


FB or mail alterX@alter.org.ua (remove X)   Share
designed by Alter aka Alexander A. Telyatnikov powered by Apache+PHP under FBSD © 2002-2024