mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-18 02:19:39 +00:00
ndp: Fix libxo formatting for the header of neighbor cache
PR: 272749 Reviewed by: zlei Fixes:e1c7783e22
ndp(8): add structured output formatting via libxo MFC after: 3 days (Note this is only a partial MFS, as the netlink part was not MFS'ed) (cherry picked from commit209905ec38
) (cherry picked from commit07cf1ce012
)
This commit is contained in:
parent
01b992a872
commit
818a8f2ef3
@ -598,7 +598,7 @@ dump(struct sockaddr_in6 *addr, int cflag)
|
||||
if (!tflag && !cflag) {
|
||||
char xobuf[200];
|
||||
snprintf(xobuf, sizeof(xobuf),
|
||||
"{T:/%%-%d.%ds} {T:/%%-%d.%ds} {T:/%%%d.%ds} {T:/%%-9.9s} {T:%%1s} {T:%%5s}\n",
|
||||
"{T:/%%-%d.%ds} {T:/%%-%d.%ds} {T:/%%%d.%ds} {T:/%%-9.9s} {T:/%%1s} {T:/%%5s}\n",
|
||||
W_ADDR, W_ADDR, W_LL, W_LL, W_IF, W_IF);
|
||||
xo_emit(xobuf, "Neighbor", "Linklayer Address", "Netif", "Expire", "S", "Flags");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user