diff options
author | Laurent Vivier <lvivier@redhat.com> | 2024-03-06 16:58:34 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-03-06 08:03:41 +0100 |
commit | e82b4fe5fc8f62fd7e0045395ad7d4260be2f35d (patch) | |
tree | 50d19aa1a22cd93047f04b5905d3ee92f18f079b /tap.h | |
parent | 324bd46782fbc5aee23abe4def5956b98a44e81c (diff) | |
download | passt-e82b4fe5fc8f62fd7e0045395ad7d4260be2f35d.tar passt-e82b4fe5fc8f62fd7e0045395ad7d4260be2f35d.tar.gz passt-e82b4fe5fc8f62fd7e0045395ad7d4260be2f35d.tar.bz2 passt-e82b4fe5fc8f62fd7e0045395ad7d4260be2f35d.tar.lz passt-e82b4fe5fc8f62fd7e0045395ad7d4260be2f35d.tar.xz passt-e82b4fe5fc8f62fd7e0045395ad7d4260be2f35d.tar.zst passt-e82b4fe5fc8f62fd7e0045395ad7d4260be2f35d.zip |
udp: little cleanup in udp_update_hdrX() to prepare future changes
in udp_update_hdr4():
Assign the source address to src, either b->s_in.sin_addr,
c->ip4.dns_match or c->ip4.gw and then set b->iph.saddr to src->s_addr.
in udp_update_hdr6():
Assign the source address to src, either b->s_in6.sin6_addr,
c->ip6.dns_match, c->ip6.gw or c->ip6.addr_ll.
Assign the destination to dst, either c->ip6.addr_seen or
&c->ip6.addr_ll_seen.
Then set dst to b->ip6h.daddr and src to b->ip6h.saddr.
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Message-ID: <20240303135114.1023026-6-lvivier@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tap.h')
0 files changed, 0 insertions, 0 deletions