implemented support for SKIP (~) files
[util-vserver.git] / util-vserver / kernel / network.h
index 638688f..1389af8 100644 (file)
 
 
 struct ip_info {
-       struct list_head ip_list;               /* linked list of ipinfos */
+       struct list_head ip_list;       /* linked list of ipinfos */
+       nid_t ip_id;                    /* vnet id */
        atomic_t ip_refcount;
        int nbipv4;
-       __u32 ipv4[NB_IPV4ROOT];/* Process can only bind to these IPs */
-                               /* The first one is used to connect */
-                               /* and for bind any service */
-                               /* The other must be used explicity when */
-                               /* binding */
-       __u32 mask[NB_IPV4ROOT];/* Netmask for each ipv4 */
-                               /* Used to select the proper source address */
-                               /* for sockets */
-       __u32 v4_bcast; /* Broadcast address used to receive UDP packets */
+       __u32 ipv4[NB_IPV4ROOT];        /* Process can only bind to these IPs */
+                                       /* The first one is used to connect */
+                                       /* and for bind any service */
+                                       /* The other must be used explicity */
+       __u32 mask[NB_IPV4ROOT];        /* Netmask for each ipv4 */
+                                       /* Used to select the proper source */
+                                       /* address for sockets */
+       __u32 v4_bcast;                 /* Broadcast address to receive UDP  */
 };
 
 
@@ -36,5 +36,9 @@ extern struct list_head ip_infos;
 void free_ip_info(struct ip_info *);
 struct ip_info *create_ip_info(void);
 
+extern struct ip_info *find_ip_info(int);
+extern int ip_info_id_valid(int);
+
+
 #endif /* __KERNEL__ */
 #endif /* _VX_NETWORK_H */