[NET]: Make AF_PACKET handle multiple network namespaces
[safe/jmp/linux-2.6] / include / net / net_namespace.h
index 90802a6..4d0d634 100644 (file)
@@ -32,6 +32,10 @@ struct net {
        struct hlist_head       *dev_index_head;
 
        struct sock             *rtnl;                  /* rtnetlink socket */
+
+       /* List of all packet sockets. */
+       rwlock_t                packet_sklist_lock;
+       struct hlist_head       packet_sklist;
 };
 
 #ifdef CONFIG_NET