]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-udp.c
Use nd_ types, add EXTRACT_ calls.
[tcpdump] / print-udp.c
index 7fe4b9de6799b74b14f6faa79ca0f0ab2468d827..69173a69ed41f75ee80cfc9ddfc9c1d5828c8a08 100644 (file)
@@ -682,7 +682,7 @@ udp_print(netdissect_options *ndo, const u_char *bp, u_int length,
                else if (IS_SRC_OR_DST_PORT(VXLAN_GPE_PORT))
                        vxlan_gpe_print(ndo, (const u_char *)(up + 1), length);
                else if (ND_TTEST(((const struct LAP *)cp)->type) &&
-                   ((const struct LAP *)cp)->type == lapDDP &&
+                   EXTRACT_U_1(((const struct LAP *)cp)->type) == lapDDP &&
                    (atalk_port(sport) || atalk_port(dport))) {
                        if (ndo->ndo_vflag)
                                ND_PRINT((ndo, "kip "));