Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6883f58 authored by Julius Volz's avatar Julius Volz Committed by Simon Horman
Browse files

IVPS: Disable sync daemon for IPv6 connections



Disable the sync daemon for IPv6 connections, works only with IPv4 for now.

Signed-off-by: default avatarJulius Volz <juliusv@google.com>
Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
parent 667a5f18
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1321,7 +1321,8 @@ ip_vs_in(unsigned int hooknum, struct sk_buff *skb,
	 * encorage the standby servers to update the connections timeout
	 */
	atomic_inc(&cp->in_pkts);
	if ((ip_vs_sync_state & IP_VS_STATE_MASTER) &&
	if (af == AF_INET &&
	    (ip_vs_sync_state & IP_VS_STATE_MASTER) &&
	    (((cp->protocol != IPPROTO_TCP ||
	       cp->state == IP_VS_TCP_S_ESTABLISHED) &&
	      (atomic_read(&cp->in_pkts) % sysctl_ip_vs_sync_threshold[1]