/* * The information about the virtual service offered to the net * and the forwarding entries */ struct ip_vs_service {
struct list_head s_list;/* for normal service table */ struct list_head f_list;/* for fwmark-based service table */ atomic_t refcnt;/* reference counter */ atomic_t usecnt;/* use counter */
__u16 protocol;/* which protocol (TCP/UDP) */ __u32 addr;/* IP address for virtual service */ __u16 port;/* port number for the service */ __u32 fwmark;/* firewall mark of the service */ unsigned flags;/* service status flags */ unsigned timeout;/* persistent timeout in ticks */ __u32 netmask;/* grouping granularity */
struct list_head destinations;/* real server d-linked list */ __u32 num_dests;/* number of servers */
struct ip_vs_stats stats;/* statistics for the service */ struct ip_vs_app *inc;/* bind conns to this app inc */