mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[NETNS]: separate af_packet netns data
Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a0a53c8ba9
commit
2aaef4e47f
3 changed files with 31 additions and 18 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <linux/list.h>
|
||||
|
||||
#include <net/netns/unix.h>
|
||||
#include <net/netns/packet.h>
|
||||
|
||||
struct proc_dir_entry;
|
||||
struct net_device;
|
||||
|
@ -43,10 +44,7 @@ struct net {
|
|||
struct ctl_table_header *sysctl_core_hdr;
|
||||
int sysctl_somaxconn;
|
||||
|
||||
/* List of all packet sockets. */
|
||||
rwlock_t packet_sklist_lock;
|
||||
struct hlist_head packet_sklist;
|
||||
|
||||
struct netns_packet packet;
|
||||
struct netns_unix unx;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue