X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/4ac279241d8b41959cdef7b2778035cb014bb10b..69cb46af9119e8b5554bcc4bf1bf36f39cb82131:/print-lane.c diff --git a/print-lane.c b/print-lane.c index 1f10fab1..edf5451c 100644 --- a/print-lane.c +++ b/print-lane.c @@ -81,14 +81,14 @@ lane_hdr_print(netdissect_options *ndo, const u_char *bp) void lane_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) { - struct lane_controlhdr *lec; + const struct lane_controlhdr *lec; if (caplen < sizeof(struct lane_controlhdr)) { ND_PRINT((ndo, "[|lane]")); return; } - lec = (struct lane_controlhdr *)p; + lec = (const struct lane_controlhdr *)p; if (EXTRACT_16BITS(&lec->lec_header) == 0xff00) { /* * LE Control.