IPVS: Change sending to Version 1 format
Subsystems (3)
RFC PATCH 4/4 IPVS: Change sending to Version 1 format
This patch finalize this patch series with sending Affected functions,
ip_vs_sync_buff_create()ip_vs_sync_conn()
ip_vs_core.c removal of IPv4 check.
Signed-off-by Hans Schillstrom <[email protected]>
--- net/netfilter/ipvs/ip_vs_core.c | 6 +- net/netfilter/ipvs/ip_vs_sync.c | 139 +++++++++++++++++++++++++++++---------- 2 files changed, 108 insertions(+), 37 deletions(-)
net/netfilter/ipvs/ip_vs_core.c +3 -3
@@ -1536,9 +1536,10 @@ ip_vs_in(unsigned int hooknum, struct sk_buff *skb, int af)* * Sync connection if it is about to close to * encorage the standby servers to update the connections timeout +* IPv6 is supported now */ pkts =atomic_add_return (1 , &cp->in_pkts); -if (af ==AF_INET && (ip_vs_sync_state &IP_VS_STATE_MASTER ) && +if ((ip_vs_sync_state &IP_VS_STATE_MASTER ) && cp->protocol ==IPPROTO_SCTP ) { if ((cp->state == IP_VS_SCTP_S_ESTABLISHED && (pkts % sysctl_ip_vs_sync_threshold[1]
@@ -1553,8 +1554,7 @@ ip_vs_in(unsigned int hooknum, struct sk_buff *skb, int af) }/* Keep this block last: TCP and others with pp->num_states <= 1 */ - else if (af == AF_INET && - (ip_vs_sync_state & IP_VS_STATE_MASTER) && + else if ((ip_vs_sync_state & IP_VS_STATE_MASTER) && (((cp->protocol != IPPROTO_TCP || cp->state == IP_VS_TCP_S_ESTABLISHED) && (pkts % sysctl_ip_vs_sync_threshold[1]
net/netfilter/ipvs/ip_vs_sync.c +105 -34
200 lines not on this page · raw message
Signature · 1 line
1.6.0.2