diff options
author | Xin Long <[email protected]> | 2017-08-20 13:38:07 +0800 |
---|---|---|
committer | Pablo Neira Ayuso <[email protected]> | 2017-09-08 13:40:02 +0200 |
commit | 1cc4a018669f2fb18c10010f1a7ab3f6fb688cef (patch) | |
tree | f73c5c0827f9f187aaab2cc7ebf906c3aab5c614 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 8e0deed92406d93ae0365cb8a6134db5721e7aca (diff) |
netfilter: ipvs: fix the issue that sctp_conn_schedule drops non-INIT packet
Commit 5e26b1b3abce ("ipvs: support scheduling inverse and icmp SCTP
packets") changed to check packet type early. It introduced a side
effect: if it's not a INIT packet, ports will be set as NULL, and
the packet will be dropped later.
It caused that sctp couldn't create connection when ipvs module is
loaded and any scheduler is registered on server.
Li Shuang reproduced it by running the cmds on sctp server:
# ipvsadm -A -t 1.1.1.1:80 -s rr
# ipvsadm -D -t 1.1.1.1:80
then the server could't work any more.
This patch is to return 1 when it's not an INIT packet. It means ipvs
will accept it without creating a conn for it, just like what it does
for tcp.
Fixes: 5e26b1b3abce ("ipvs: support scheduling inverse and icmp SCTP packets")
Reported-by: Li Shuang <[email protected]>
Signed-off-by: Xin Long <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions