Skip to content

Commit 68913a0

Browse files
lxinummakynes
authored andcommitted
netfilter: ipvs: do not create conn for ABORT packet in sctp_conn_schedule
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 <[email protected]> Signed-off-by: Simon Horman <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 1cc4a01 commit 68913a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/netfilter/ipvs/ip_vs_proto_sctp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ sctp_conn_schedule(struct netns_ipvs *ipvs, int af, struct sk_buff *skb,
2525
sch = skb_header_pointer(skb, iph->len + sizeof(_sctph),
2626
sizeof(_schunkh), &_schunkh);
2727
if (sch) {
28-
if (!(sysctl_sloppy_sctp(ipvs) ||
28+
if (sch->type == SCTP_CID_ABORT ||
29+
!(sysctl_sloppy_sctp(ipvs) ||
2930
sch->type == SCTP_CID_INIT))
3031
return 1;
3132
ports = &sh->source;

0 commit comments

Comments
 (0)