mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-06-08 09:49:46 -04:00
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>
This commit is contained in:
committed by
David S. Miller
parent
633fc86ff6
commit
7240cdec60
@@ -7,7 +7,16 @@
|
||||
#ifndef __NETNS_IEEE802154_6LOWPAN_H__
|
||||
#define __NETNS_IEEE802154_6LOWPAN_H__
|
||||
|
||||
struct netns_sysctl_lowpan {
|
||||
#ifdef CONFIG_SYSCTL
|
||||
struct ctl_table_header *frags_hdr;
|
||||
#endif
|
||||
};
|
||||
|
||||
struct netns_ieee802154_lowpan {
|
||||
struct netns_sysctl_lowpan sysctl;
|
||||
struct netns_frags frags;
|
||||
u16 max_dsize;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user