summaryrefslogtreecommitdiff
path: root/tcp.h
diff options
context:
space:
mode:
authoritojun <itojun>2002-11-09 17:19:16 +0000
committeritojun <itojun>2002-11-09 17:19:16 +0000
commit10afb02ac804db7fa41a776fd61eff922c09c4df (patch)
tree7853d4c0ef4bed1104cf17690a35df64acf49dfe /tcp.h
parentdcc101488006c0dce19f4a4386b3cd936d9b6d87 (diff)
downloadtcpdump-10afb02ac804db7fa41a776fd61eff922c09c4df.tar.gz
put __attribute__((packed)) to packet headers. s/u_short/u_int16_t/ and so
forth while i'm here
Diffstat (limited to 'tcp.h')
-rw-r--r--tcp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcp.h b/tcp.h
index 75c6d9cf..667948d9 100644
--- a/tcp.h
+++ b/tcp.h
@@ -1,4 +1,4 @@
-/* @(#) $Header: /tcpdump/master/tcpdump/tcp.h,v 1.8 2001-05-09 01:16:57 fenner Exp $ (LBL) */
+/* @(#) $Header: /tcpdump/master/tcpdump/tcp.h,v 1.9 2002-11-09 17:19:32 itojun Exp $ (LBL) */
/*
* Copyright (c) 1982, 1986, 1993
* The Regents of the University of California. All rights reserved.
@@ -58,7 +58,7 @@ struct tcphdr {
u_int16_t th_win; /* window */
u_int16_t th_sum; /* checksum */
u_int16_t th_urp; /* urgent pointer */
-};
+} __attribute__((packed));
#define TCPOPT_EOL 0
#define TCPOPT_NOP 1