diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-05-20 16:43:49 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-05-20 18:49:26 +0200 |
commit | 519a3f663694678a4fa7119b94f53dc7394627cc (patch) | |
tree | c7605a60c5181c7b319e0d60c855541f7eacacee /print-rx.c | |
parent | d5b451c089db5f6819518a925dadf8f3167f0c77 (diff) | |
download | tcpdump-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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("}"); |