X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fkernel%2Fnetwork.h;h=1389af8ea0b35bcb2e4de181ce9a0843090c4008;hb=68d5c2382193b48af33297ee66c63714a6811b35;hp=638688f1dd1e5c9f5f113e3f479ba39da22751ed;hpb=0b275c5a23d6c49d61559504e4dedfc4cc284414;p=util-vserver.git diff --git a/util-vserver/kernel/network.h b/util-vserver/kernel/network.h index 638688f..1389af8 100644 --- a/util-vserver/kernel/network.h +++ b/util-vserver/kernel/network.h @@ -14,18 +14,18 @@ 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 */