diff options
author | itojun <itojun> | 2000-10-03 02:54:54 +0000 |
---|---|---|
committer | itojun <itojun> | 2000-10-03 02:54:54 +0000 |
commit | fb75d3cd5ad603bd255d9cdc20aeca674c6f3720 (patch) | |
tree | f7216518bb3fe268e2512bce0b8d68448d0aa976 /llc.h | |
parent | cdaba7de64aab0672383804b7c80cc3678936b4f (diff) | |
download | tcpdump-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.h | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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; }; |