FreeBSD Bugzilla – Attachment 243638 Details for
Bug 272749
ndp(8): correct a few xo_emit formats
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
ndp.c.diff (text/plain), 937 bytes, created by
Helge Oldach
on 2023-07-27 09:02:31 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Helge Oldach
Created:
2023-07-27 09:02:31 UTC
Size:
937 bytes
patch
obsolete
>diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c >index 5097c156e624..e1efcdd79423 100644 >--- a/usr.sbin/ndp/ndp.c >+++ b/usr.sbin/ndp/ndp.c >@@ -599,7 +599,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"); > } >@@ -1267,7 +1267,7 @@ plist() > if (p->expire == 0) > xo_emit(", expire=Never{en:permanent/true}"); > else if (p->expire >= now.tv_sec) >- xo_emit(", expire=%s{e:expires_sec/%d}", >+ xo_emit("{d:/, expire=%s}{e:expires_sec/%d}", > sec2str(expire_in), expire_in); > else > xo_emit(", expired{e:expires_sec/%d}", expire_in);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 272749
:
243638
|
244806
|
253269