diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-07-17 10:36:02 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-07-17 07:05:15 +0200 |
commit | 4e1f850f61caaff0c65ce9d5fc4322a4aea807dc (patch) | |
tree | b0a341a91943b4ffe1794c6df32aa1ad70bc69fb /tcp_splice.c | |
parent | 272d1d033c640700b21c49335b5b9c9474f52682 (diff) | |
download | passt-4e1f850f61caaff0c65ce9d5fc4322a4aea807dc.tar passt-4e1f850f61caaff0c65ce9d5fc4322a4aea807dc.tar.gz passt-4e1f850f61caaff0c65ce9d5fc4322a4aea807dc.tar.bz2 passt-4e1f850f61caaff0c65ce9d5fc4322a4aea807dc.tar.lz passt-4e1f850f61caaff0c65ce9d5fc4322a4aea807dc.tar.xz passt-4e1f850f61caaff0c65ce9d5fc4322a4aea807dc.tar.zst passt-4e1f850f61caaff0c65ce9d5fc4322a4aea807dc.zip |
udp, tcp: Tweak handling of no_udp and no_tcp flags
We abort the UDP socket handler if the no_udp flag is set. But if UDP
was disabled we should never have had a UDP socket to trigger the handler
in the first place. If we somehow did, ignoring it here isn't really going
to help because aborting without doing anything is likely to lead to an
epoll loop. The same is the case for the TCP socket and timer handlers and
the no_tcp flag.
Change these checks on the flag to ASSERT()s. Similarly add ASSERT()s to
several other entry points to the protocol specific code which should never
be called if the protocol is disabled.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp_splice.c')
0 files changed, 0 insertions, 0 deletions