diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-02-28 01:32:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-28 17:05:22 -0500 |
commit | 7240cdec60b136f3e64a453c7fbded4ed1aa047e (patch) | |
tree | 1ef358c776a1493ba1d2e6786bf070b05e960c48 /include/net/netns | |
parent | 633fc86ff621bba79dcddfd4c67fb07ae5f8467c (diff) |
6lowpan: handling 6lowpan fragmentation via inet_frag api
This patch drops the current way of 6lowpan fragmentation on receiving
side and replace it with a implementation which use the inet_frag api.
The old fragmentation handling has some race conditions and isn't
rfc4944 compatible. Also adding support to match fragments on
destination address, source address, tag value and datagram_size
which is missing in the current implementation.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns')
-rw-r--r-- | include/net/netns/ieee802154_6lowpan.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/netns/ieee802154_6lowpan.h b/include/net/netns/ieee802154_6lowpan.h index 88110b7e2428..079030c853d8 100644 --- a/include/net/netns/ieee802154_6lowpan.h +++ b/include/net/netns/ieee802154_6lowpan.h | |||
@@ -7,7 +7,16 @@ | |||
7 | #ifndef __NETNS_IEEE802154_6LOWPAN_H__ | 7 | #ifndef __NETNS_IEEE802154_6LOWPAN_H__ |
8 | #define __NETNS_IEEE802154_6LOWPAN_H__ | 8 | #define __NETNS_IEEE802154_6LOWPAN_H__ |
9 | 9 | ||
10 | struct netns_sysctl_lowpan { | ||
11 | #ifdef CONFIG_SYSCTL | ||
12 | struct ctl_table_header *frags_hdr; | ||
13 | #endif | ||
14 | }; | ||
15 | |||
10 | struct netns_ieee802154_lowpan { | 16 | struct netns_ieee802154_lowpan { |
17 | struct netns_sysctl_lowpan sysctl; | ||
18 | struct netns_frags frags; | ||
19 | u16 max_dsize; | ||
11 | }; | 20 | }; |
12 | 21 | ||
13 | #endif | 22 | #endif |