![]() |
lvs-devel
|
| To: | netfilter-devel@xxxxxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH net 2/2] netfilter: ipvs: do not create conn for ABORT packet in sctp_conn_schedule |
| Cc: | pablo@xxxxxxxxxxxxx, Alex Gartrell <agartrell@xxxxxx>, lvs-devel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, horms@xxxxxxxxxxxx, ja@xxxxxx, wensong@xxxxxxxxxxxx |
| From: | Xin Long <lucien.xin@xxxxxxxxx> |
| Date: | Sun, 20 Aug 2017 13:38:08 +0800 |
There's no reason for ipvs to create a conn for an ABORT packet
even if sysctl_sloppy_sctp is set.
This patch is to accept it without creating a conn, just as ipvs
does for tcp's RST packet.
Signed-off-by: Xin Long <lucien.xin@xxxxxxxxx>
---
net/netfilter/ipvs/ip_vs_proto_sctp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/netfilter/ipvs/ip_vs_proto_sctp.c
b/net/netfilter/ipvs/ip_vs_proto_sctp.c
index e9b18ac..d86773a 100644
--- a/net/netfilter/ipvs/ip_vs_proto_sctp.c
+++ b/net/netfilter/ipvs/ip_vs_proto_sctp.c
@@ -25,7 +25,8 @@ sctp_conn_schedule(struct netns_ipvs *ipvs, int af, struct
sk_buff *skb,
sch = skb_header_pointer(skb, iph->len + sizeof(_sctph),
sizeof(_schunkh), &_schunkh);
if (sch) {
- if (!(sysctl_sloppy_sctp(ipvs) ||
+ if (sch->type == SCTP_CID_ABORT ||
+ !(sysctl_sloppy_sctp(ipvs) ||
sch->type == SCTP_CID_INIT))
return 1;
ports = &sh->source;
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH net 1/2] netfilter: ipvs: fix the issue that sctp_conn_schedule drops non-INIT packet, Xin Long |
|---|---|
| Next by Date: | Re: [PATCH net 0/2] netfilter: ipvs: some fixes in sctp_conn_schedule, Julian Anastasov |
| Previous by Thread: | [PATCH net 1/2] netfilter: ipvs: fix the issue that sctp_conn_schedule drops non-INIT packet, Xin Long |
| Next by Thread: | Re: [PATCH net 0/2] netfilter: ipvs: some fixes in sctp_conn_schedule, Julian Anastasov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |