]> The Tcpdump Group git mirrors - tcpdump/commitdiff
IEEE 802.11: Print the SSID with the fn_print_str() function
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 18 May 2018 20:27:34 +0000 (22:27 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 19 May 2018 07:14:19 +0000 (09:14 +0200)
We cannot use nd_print() because the parameter is not a pointer on the
packet buffer.

print-802_11.c

index c82387592b73175789018453ce0386979674126f..b668d0c60e6fdc11638b757564607b6a47973ba8 100644 (file)
@@ -402,7 +402,7 @@ struct meshcntl_t {
 #define PRINT_SSID(p) \
        if (p.ssid_present) { \
                ND_PRINT(" ("); \
-               nd_print(ndo, p.ssid.ssid, NULL); \
+               fn_print_str(ndo, p.ssid.ssid); \
                ND_PRINT(")"); \
        }