summaryrefslogtreecommitdiff
path: root/print-rx.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-05-20 16:43:49 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-05-20 18:49:26 +0200
commit519a3f663694678a4fa7119b94f53dc7394627cc (patch)
treec7605a60c5181c7b319e0d60c855541f7eacacee /print-rx.c
parentd5b451c089db5f6819518a925dadf8f3167f0c77 (diff)
downloadtcpdump-519a3f663694678a4fa7119b94f53dc7394627cc.tar.gz
Rx: Use the fn_print_str() function instead of nd_print()
We cannot use nd_print() because the parameter is not a pointer on the packet buffer.
Diffstat (limited to 'print-rx.c')
-rw-r--r--print-rx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-rx.c b/print-rx.c
index d687a3bb..454ae4ff 100644
--- a/print-rx.c
+++ b/print-rx.c
@@ -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("}");