diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-02-28 16:39:28 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-02-29 05:41:03 +0100 |
commit | 745fa3816979c535b6b046fbc6710a969360ac02 (patch) | |
tree | 2da4b87401c86b49aa9626603f0a0b0e0a8ab3e3 /pcap.c | |
parent | deea5a84373169a2886bbeaf674a4ebb864ba2ac (diff) | |
download | passt-745fa3816979c535b6b046fbc6710a969360ac02.tar passt-745fa3816979c535b6b046fbc6710a969360ac02.tar.gz passt-745fa3816979c535b6b046fbc6710a969360ac02.tar.bz2 passt-745fa3816979c535b6b046fbc6710a969360ac02.tar.lz passt-745fa3816979c535b6b046fbc6710a969360ac02.tar.xz passt-745fa3816979c535b6b046fbc6710a969360ac02.tar.zst passt-745fa3816979c535b6b046fbc6710a969360ac02.zip |
udp: Fix incorrect usage of IPv6 state in IPv4 path
When forwarding IPv4 packets in udp_tap_handler(), we incorrectly use an
IPv6 address test on our IPv4 address (which could cause an out of bounds
access), and possibly set our bind interface to the IPv6 interface based on
it. Adjust to correctly look at the IPv4 address and IPv4 interface.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'pcap.c')
0 files changed, 0 insertions, 0 deletions