]> The Tcpdump Group git mirrors - libpcap/commitdiff
Use u_short rather than u_int16_t; that's what we do elsewhere.
authorGuy Harris <[email protected]>
Thu, 6 Nov 2014 07:39:57 +0000 (23:39 -0800)
committerGuy Harris <[email protected]>
Thu, 6 Nov 2014 07:39:57 +0000 (23:39 -0800)
u_int16_t is not guaranteed to be defined when this is included by
applications (for example, tcpdump).

pcap/bpf.h

index 27d46300225a2d83d94cdcb3683b598c51bdfa93..48805087e86b9dc731a317aa775d2bc2597ff981 100644 (file)
@@ -1475,8 +1475,8 @@ struct bpf_insn {
  * run it in userland).  It contains VLAN tag information.
  */
 struct bpf_aux_data {
-        u_int16_t vlan_tag_present;
-        u_int16_t vlan_tag;
+       u_short vlan_tag_present;
+       u_short vlan_tag;
 };
 
 /*