Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111561
b: refs/heads/master
c: c860c6b
h: refs/heads/master
i:
  111559: 2b0f732
v: v3
  • Loading branch information
Julius Volz authored and Simon Horman committed Sep 5, 2008
1 parent 06383a9 commit 82946db
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 49 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c842a3ada9ba8f0cca38a70de3fe0effcfab254c
refs/heads/master: c860c6b1479992440e4962e9c95d258bfdce4fca
39 changes: 39 additions & 0 deletions trunk/include/net/ip_vs.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,45 @@ struct ip_vs_conn {
};


/*
* Extended internal versions of struct ip_vs_service_user and
* ip_vs_dest_user for IPv6 support.
*
* We need these to conveniently pass around service and destination
* options, but unfortunately, we also need to keep the old definitions to
* maintain userspace backwards compatibility for the setsockopt interface.
*/
struct ip_vs_service_user_kern {
/* virtual service addresses */
u16 af;
u16 protocol;
union nf_inet_addr addr; /* virtual ip address */
u16 port;
u32 fwmark; /* firwall mark of service */

/* virtual service options */
char *sched_name;
unsigned flags; /* virtual service flags */
unsigned timeout; /* persistent timeout in sec */
u32 netmask; /* persistent netmask */
};


struct ip_vs_dest_user_kern {
/* destination server address */
union nf_inet_addr addr;
u16 port;

/* real server options */
unsigned conn_flags; /* connection flags */
int weight; /* destination weight */

/* thresholds for active connections */
u32 u_threshold; /* upper threshold */
u32 l_threshold; /* lower threshold */
};


/*
* The information about the virtual service offered to the net
* and the forwarding entries
Expand Down
Loading

0 comments on commit 82946db

Please sign in to comment.