]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Rx: Use the fn_print_str() function instead of nd_print()
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 20 May 2018 14:43:49 +0000 (16:43 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 20 May 2018 16:49:26 +0000 (18:49 +0200)
We cannot use nd_print() because the parameter is not a pointer on the
packet buffer.

print-rx.c

index d687a3bbb2c3781709f604fda200c26389371a21..454ae4ff0339ba1e35a1af99e47606aead9c62d8 100644 (file)
@@ -869,7 +869,7 @@ rx_cache_find(const struct rx_header *rxh, const struct ip *ip, u_int sport,
                        } \
                        s[(MAX)] = '\0'; \
                        ND_PRINT(" \""); \
-                       nd_print(ndo, s, NULL); \
+                       fn_print_str(ndo, s); \
                        ND_PRINT("\""); \
                }
 
@@ -1190,7 +1190,7 @@ acl_print(netdissect_options *ndo,
                        goto finish;
                s += n;
                ND_PRINT(" +{");
-               nd_print(ndo, (u_char *)user, NULL);
+               fn_print_str(ndo, (u_char *)user);
                ND_PRINT(" ");
                ACLOUT(acl);
                ND_PRINT("}");
@@ -1204,7 +1204,7 @@ acl_print(netdissect_options *ndo,
                        goto finish;
                s += n;
                ND_PRINT(" -{");
-               nd_print(ndo, (u_char *)user, NULL);
+               fn_print_str(ndo, (u_char *)user);
                ND_PRINT(" ");
                ACLOUT(acl);
                ND_PRINT("}");