aboutsummaryrefslogtreecommitdiff
path: root/print-pppoe.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-09 11:40:36 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-09 11:46:15 +0100
commit1cfd6cd2ac8acecbcf16e083a6cd272a19ec994e (patch)
tree0b4481667ad1bab77665e54d07f787c8244c633e /print-pppoe.c
parentef3437c081dd78bd51fad6ed0d6af58dcfaabd69 (diff)
downloadtcpdump-1cfd6cd2ac8acecbcf16e083a6cd272a19ec994e.tar.gz
Use more the EXTRACT_U_1() macro (51/n)
Moreover: Use more the ND_ISPRINT() macro.
Diffstat (limited to 'print-pppoe.c')
-rw-r--r--print-pppoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-pppoe.c b/print-pppoe.c
index f1fedc75..652f82ef 100644
--- a/print-pppoe.c
+++ b/print-pppoe.c
@@ -156,7 +156,7 @@ pppoe_print(netdissect_options *ndo, register const u_char *bp, u_int length)
/* TODO print UTF-8 decoded text */
ND_TCHECK2(*p, tag_len);
for (v = p; v < p + tag_len && tag_str_len < MAXTAGPRINT-1; v++)
- if (*v >= 32 && *v < 127) {
+ if (ND_ISPRINT(EXTRACT_U_1(v))) {
tag_str[tag_str_len++] = EXTRACT_U_1(v);
ascii_count++;
} else {