]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Use u_intXX_t instead of uintXX_t, because the fomer ones are the ones that
authorgianluca <gianluca>
Fri, 11 Apr 2008 17:00:00 +0000 (17:00 +0000)
committergianluca <gianluca>
Fri, 11 Apr 2008 17:00:00 +0000 (17:00 +0000)
we check in the configure script and *nix and the ones we define under Windows
(windump).

print-rrcp.c

index 7f03f1893d1d227ddb4a8e86e353b9d9314956d5..dc3045793be9db9a40b21b6ea68d49ee14b03183 100644 (file)
@@ -23,7 +23,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-rrcp.c,v 1.1.2.1 2008-02-06 10:49:22 guy Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-rrcp.c,v 1.1.2.2 2008-04-11 17:00:00 gianluca Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -46,29 +46,29 @@ static const char rcsid[] _U_ =
 
 struct rrcp_packet_t
 {
-  uint16_t rrcp_ethertype;             /* 0x8899 */
-  uint8_t  rrcp_proto;                 /* must be 0x01         */
-  uint8_t  rrcp_opcode:7;               /* 0x00 = hello, 0x01 = get, 0x02 = set */
-  uint8_t  rrcp_isreply:1;              /* 0 = request to switch, 1 = reply from switch */
-  uint16_t rrcp_authkey;               /* 0x2379 by default */
-  uint16_t rrcp_reg_addr;              /* register address */
-  uint32_t rrcp_reg_data;              /* register data */
-  uint32_t cookie1;
-  uint32_t cookie2;
+  u_int16_t rrcp_ethertype;            /* 0x8899 */
+  u_int8_t  rrcp_proto;                        /* must be 0x01         */
+  u_int8_t  rrcp_opcode:7;               /* 0x00 = hello, 0x01 = get, 0x02 = set */
+  u_int8_t  rrcp_isreply:1;              /* 0 = request to switch, 1 = reply from switch */
+  u_int16_t rrcp_authkey;              /* 0x2379 by default */
+  u_int16_t rrcp_reg_addr;             /* register address */
+  u_int32_t rrcp_reg_data;             /* register data */
+  u_int32_t cookie1;
+  u_int32_t cookie2;
 };
 
 struct rrcp_helloreply_packet_t
 {
-  uint16_t rrcp_ethertype;             /* 0x8899 */
-  uint8_t  rrcp_proto;                 /* must be 0x01         */
-  uint8_t  rrcp_opcode:7;               /* 0x00 = hello, 0x01 = get, 0x02 = set */
-  uint8_t  rrcp_isreply:1;              /* 0 = request to switch, 1 = reply from switch */
-  uint16_t rrcp_authkey;               /* 0x2379 by default */
-  uint8_t  rrcp_downlink_port;         /*  */
-  uint8_t  rrcp_uplink_port;           /*  */
-  uint8_t  rrcp_uplink_mac[ETH_ALEN];   /*  */
-  uint16_t rrcp_chip_id;               /*  */
-  uint32_t rrcp_vendor_id;             /*  */
+  u_int16_t rrcp_ethertype;            /* 0x8899 */
+  u_int8_t  rrcp_proto;                        /* must be 0x01         */
+  u_int8_t  rrcp_opcode:7;               /* 0x00 = hello, 0x01 = get, 0x02 = set */
+  u_int8_t  rrcp_isreply:1;              /* 0 = request to switch, 1 = reply from switch */
+  u_int16_t rrcp_authkey;              /* 0x2379 by default */
+  u_int8_t  rrcp_downlink_port;                /*  */
+  u_int8_t  rrcp_uplink_port;          /*  */
+  u_int8_t  rrcp_uplink_mac[ETH_ALEN];   /*  */
+  u_int16_t rrcp_chip_id;              /*  */
+  u_int32_t rrcp_vendor_id;            /*  */
 };