summaryrefslogtreecommitdiff
path: root/llc.h
diff options
context:
space:
mode:
authoritojun <itojun>2000-10-03 02:54:54 +0000
committeritojun <itojun>2000-10-03 02:54:54 +0000
commitfb75d3cd5ad603bd255d9cdc20aeca674c6f3720 (patch)
treef7216518bb3fe268e2512bce0b8d68448d0aa976 /llc.h
parentcdaba7de64aab0672383804b7c80cc3678936b4f (diff)
downloadtcpdump-fb75d3cd5ad603bd255d9cdc20aeca674c6f3720.tar.gz
always use u_intXX_t for protocol format declaration. char/short/int may not
come with exact size. while at it, correct signedness of ip/udp header field. nuke most of the use of bitfield. TODO: bitfield in namser.h
Diffstat (limited to 'llc.h')
-rw-r--r--llc.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/llc.h b/llc.h
index dc9f5a5f..b58324b5 100644
--- a/llc.h
+++ b/llc.h
@@ -18,7 +18,7 @@
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#) $Header: /tcpdump/master/tcpdump/llc.h,v 1.6 1999-10-07 23:47:10 mcr Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/tcpdump/llc.h,v 1.7 2000-10-03 02:54:57 itojun Exp $ (LBL)
*/
/*
@@ -32,19 +32,19 @@
*/
struct llc {
- u_char dsap;
- u_char ssap;
+ u_int8_t dsap;
+ u_int8_t ssap;
union {
- u_char u_ctl;
- u_short is_ctl;
+ u_int8_t u_ctl;
+ u_int16_t is_ctl;
struct {
- u_char snap_ui;
- u_char snap_pi[5];
+ u_int8_t snap_ui;
+ u_int8_t snap_pi[5];
} snap;
struct {
- u_char snap_ui;
- u_char snap_orgcode[3];
- u_char snap_ethertype[2];
+ u_int8_t snap_ui;
+ u_int8_t snap_orgcode[3];
+ u_int8_t snap_ethertype[2];
} snap_ether;
} ctl;
};