forked from luck/tmp_suning_uos_patched
48bc03433c
The max_dsize attribute in ctl_table for lowpan_frags_ns_ctl_table is configured with integer accessing methods. This patch change the max_dsize attribute to int to avoid a possible buffer overflow. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
23 lines
378 B
C
23 lines
378 B
C
/*
|
|
* ieee802154 6lowpan in net namespaces
|
|
*/
|
|
|
|
#include <net/inet_frag.h>
|
|
|
|
#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;
|
|
int max_dsize;
|
|
};
|
|
|
|
#endif
|