Skip to content

Commit b805a18

Browse files
committed
trace: display neigh advert solicited flag
Include the solicited flag value in NDP neighbor advertisement trace output. This flag distinguishes between advertisements sent in response to neighbor solicitations (solicited=1) and unsolicited announcements broadcast when an interface comes up (solicited=0). Signed-off-by: Robin Jarry <[email protected]>
1 parent a8eb69c commit b805a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/infra/datapath/trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ int trace_icmp6_format(char *buf, size_t len, const struct icmp6 *icmp6, size_t
266266
const struct icmp6_neigh_advert *na = PAYLOAD(icmp6);
267267
payload_len -= sizeof(*na);
268268
inet_ntop(AF_INET6, &na->target, dst, sizeof(dst));
269-
SAFE_BUF(snprintf, len, "neigh advert %s is at", dst);
269+
SAFE_BUF(snprintf, len, "neigh advert %s is at (solicited=%u)", dst, na->solicited);
270270
opt = PAYLOAD(na);
271271
break;
272272
}

0 commit comments

Comments
 (0)