diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-03-11 05:35:06 -0500 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-03-11 05:37:35 -0500 |
commit | d387eaf51f8c869a41d90474d3599d1e89826254 (patch) | |
tree | 91be3790861142d1d63066f237d20fc32818169f /include/net | |
parent | 793882bfc31595dad0b54b9da8f43c5434151e03 (diff) | |
parent | 7617a24f83b5d67f4dab1844956be1cebc44aec8 (diff) |
Merge tag 'ipvs-fixes-for-v4.5' of https://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs
Simon Horman says:
====================
please consider these IPVS fixes for v4.5 or
if it is too late please consider them for v4.6.
* Arnd Bergman has corrected an error whereby the SIP persistence engine
may incorrectly access protocol fields
* Julian Anastasov has corrected a problem reported by Jiri Bohac with the
connection rescheduling mechanism added in 3.10 when new SYNs in
connection to dead real server can be redirected to another real server.
* Marco Angaroni resolved a problem in the SIP persistence engine
whereby the Call-ID could not be found if it was at the beginning of a
SIP message.
====================
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ip_vs.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 0816c872b689..a6cc576fd467 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -1588,6 +1588,23 @@ static inline void ip_vs_conn_drop_conntrack(struct ip_vs_conn *cp) | |||
1588 | } | 1588 | } |
1589 | #endif /* CONFIG_IP_VS_NFCT */ | 1589 | #endif /* CONFIG_IP_VS_NFCT */ |
1590 | 1590 | ||
1591 | /* Really using conntrack? */ | ||
1592 | static inline bool ip_vs_conn_uses_conntrack(struct ip_vs_conn *cp, | ||
1593 | struct sk_buff *skb) | ||
1594 | { | ||
1595 | #ifdef CONFIG_IP_VS_NFCT | ||
1596 | enum ip_conntrack_info ctinfo; | ||
1597 | struct nf_conn *ct; | ||
1598 | |||
1599 | if (!(cp->flags & IP_VS_CONN_F_NFCT)) | ||
1600 | return false; | ||
1601 | ct = nf_ct_get(skb, &ctinfo); | ||
1602 | if (ct && !nf_ct_is_untracked(ct)) | ||
1603 | return true; | ||
1604 | #endif | ||
1605 | return false; | ||
1606 | } | ||
1607 | |||
1591 | static inline int | 1608 | static inline int |
1592 | ip_vs_dest_conn_overhead(struct ip_vs_dest *dest) | 1609 | ip_vs_dest_conn_overhead(struct ip_vs_dest *dest) |
1593 | { | 1610 | { |