Lines 599-605
dump(struct sockaddr_in6 *addr, int cflag)
Link Here
|
599 |
if (!tflag && !cflag) { |
599 |
if (!tflag && !cflag) { |
600 |
char xobuf[200]; |
600 |
char xobuf[200]; |
601 |
snprintf(xobuf, sizeof(xobuf), |
601 |
snprintf(xobuf, sizeof(xobuf), |
602 |
"{T:/%%-%d.%ds} {T:/%%-%d.%ds} {T:/%%%d.%ds} {T:/%%-9.9s} {T:%%1s} {T:%%5s}\n", |
602 |
"{T:/%%-%d.%ds} {T:/%%-%d.%ds} {T:/%%%d.%ds} {T:/%%-9.9s} {T:/%%1s} {T:/%%5s}\n", |
603 |
W_ADDR, W_ADDR, W_LL, W_LL, W_IF, W_IF); |
603 |
W_ADDR, W_ADDR, W_LL, W_LL, W_IF, W_IF); |
604 |
xo_emit(xobuf, "Neighbor", "Linklayer Address", "Netif", "Expire", "S", "Flags"); |
604 |
xo_emit(xobuf, "Neighbor", "Linklayer Address", "Netif", "Expire", "S", "Flags"); |
605 |
} |
605 |
} |
Lines 1267-1273
plist()
Link Here
|
1267 |
if (p->expire == 0) |
1267 |
if (p->expire == 0) |
1268 |
xo_emit(", expire=Never{en:permanent/true}"); |
1268 |
xo_emit(", expire=Never{en:permanent/true}"); |
1269 |
else if (p->expire >= now.tv_sec) |
1269 |
else if (p->expire >= now.tv_sec) |
1270 |
xo_emit(", expire=%s{e:expires_sec/%d}", |
1270 |
xo_emit("{d:/, expire=%s}{e:expires_sec/%d}", |
1271 |
sec2str(expire_in), expire_in); |
1271 |
sec2str(expire_in), expire_in); |
1272 |
else |
1272 |
else |
1273 |
xo_emit(", expired{e:expires_sec/%d}", expire_in); |
1273 |
xo_emit(", expired{e:expires_sec/%d}", expire_in); |