diff options
author | Patrick McHardy <kaber@trash.net> | 2006-01-07 02:04:01 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-07 15:57:32 -0500 |
commit | 8cdfab8a43bb4b3da686ea503a702cb6f9f6a803 (patch) | |
tree | 9c4f42ff23f0e227e705aa5aae4f74e45297f3cb /include/net/ip.h | |
parent | b05e106698d9966de524e78d9da1bf6407fe0c32 (diff) |
[IPV4]: reset IPCB flags when neccessary
Reset IPSKB_XFRM_TUNNEL_SIZE flags in ipip and ip_gre hard_start_xmit
function before the packet reenters IP. This is neccessary so the
encapsulated packets are checked not to be oversized in xfrm4_output.c
again. Reset all flags in sit when a packet changes its address family.
Also remove some obsolete IPSKB flags.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip.h')
-rw-r--r-- | include/net/ip.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index 7bb5804847f2..52f4d9c69704 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
@@ -37,11 +37,9 @@ struct inet_skb_parm | |||
37 | struct ip_options opt; /* Compiled IP options */ | 37 | struct ip_options opt; /* Compiled IP options */ |
38 | unsigned char flags; | 38 | unsigned char flags; |
39 | 39 | ||
40 | #define IPSKB_MASQUERADED 1 | 40 | #define IPSKB_FORWARDED 1 |
41 | #define IPSKB_TRANSLATED 2 | 41 | #define IPSKB_XFRM_TUNNEL_SIZE 2 |
42 | #define IPSKB_FORWARDED 4 | 42 | #define IPSKB_FRAG_COMPLETE 4 |
43 | #define IPSKB_XFRM_TUNNEL_SIZE 8 | ||
44 | #define IPSKB_FRAG_COMPLETE 16 | ||
45 | }; | 43 | }; |
46 | 44 | ||
47 | struct ipcm_cookie | 45 | struct ipcm_cookie |