<< Back Home UK uk   Donate Donate

Fix for Ethernet address output format in FreeBSD NDP

by Alter ( (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:

FreeBSD bugtrack ID: 169075


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


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