]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-l2tp.c
RX: Add a const qualifier
[tcpdump] / print-l2tp.c
index 024705f821ba5e1e25299bcb169a921f3f6355b4..892155058a97449cdda760aba21850cfe887d798 100644 (file)
@@ -577,7 +577,7 @@ l2tp_avp_print(netdissect_options *ndo, const u_char *dat, u_int length)
        len = GET_BE_U_2(dat) & L2TP_AVP_HDR_LEN_MASK;
 
        /* If it is not long enough to contain the header, we'll give up. */
-       ND_LCHECKMSG_U(len, 6, "AVP length");
+       ND_ICHECKMSG_U("AVP length", len, <, 6);
 
        /* If it goes past the end of the remaining length of the packet,
           we'll give up. */