]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Babel,DHCPv6: Use nd_print_protocol()
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 15 Apr 2023 09:05:35 +0000 (11:05 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 12 May 2023 05:40:16 +0000 (07:40 +0200)
print-babel.c
print-dhcp6.c

index d802a720f12f6dc6fcbd8054355d72e29da563be..fc1ed87e85919532bedc1136b43580a249e22ecc 100644 (file)
@@ -57,7 +57,7 @@ babel_print(netdissect_options *ndo,
             const u_char *cp, u_int length)
 {
     ndo->ndo_protocol = "babel";
-    ND_PRINT("babel");
+    nd_print_protocol(ndo);
 
     ND_TCHECK_4(cp);
 
index 7e7d1246fc0a2f970a41e0cb1023b1ce8e0335ef..a96ba60b1e57b49b97dbe51665b168ef5f545bed 100644 (file)
@@ -851,7 +851,7 @@ dhcp6_print(netdissect_options *ndo,
        const char *name;
 
        ndo->ndo_protocol = "dhcp6";
-       ND_PRINT("dhcp6");
+       nd_print_protocol(ndo);
 
        ep = ndo->ndo_snapend;
        if (cp + length < ep)