]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ether.c
IP: Enable TSO (TCP Segmentation Offload) support
[tcpdump] / print-ether.c
index cd623f9025687a95bb7e166bdf98e516cb0ea30d..3a62771bfc0e3ecd32b4a8dab588f73246dc9b82 100644 (file)
@@ -238,7 +238,7 @@ recurse:
                         */
                        length_type = GET_BE_U_2(p);
 
-                       ND_LCHECK_U(caplen, 2);
+                       ND_ICHECK_U(caplen, <, 2);
                        length -= 2;
                        caplen -= 2;
                        p += 2;
@@ -412,7 +412,7 @@ invalid:
 }
 
 /*
- * Print an Ethernet frame while specyfing a non-standard Ethernet header
+ * Print an Ethernet frame while specifying a non-standard Ethernet header
  * length.
  * This might be encapsulated within another frame; we might be passed
  * a pointer to a function that can print header information for that