# | Line 53 | Line 53 | extern struct socket *tcp_last_so; | |
---|---|---|
53 | * TCP header. | |
54 | * Per RFC 793, September, 1981. | |
55 | */ | |
56 | + | #ifdef PRAGMA_PACK_SUPPORTED |
57 | + | #pragma pack(1) |
58 | + | #endif |
59 | + | |
60 | struct tcphdr { | |
61 | u_int16_t th_sport; /* source port */ | |
62 | u_int16_t th_dport; /* destination port */ | |
# | Line 75 | Line 79 | struct tcphdr { | |
79 | u_int16_t th_win; /* window */ | |
80 | u_int16_t th_sum; /* checksum */ | |
81 | u_int16_t th_urp; /* urgent pointer */ | |
82 | < | }; |
82 | > | } PACKED__; |
83 | > | |
84 | > | #ifdef PRAGMA_PACK_SUPPORTED |
85 | > | #pragma pack(0) |
86 | > | #endif |
87 | ||
88 | #include "tcp_var.h" | |
89 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |