aboutgitcodebugslistschat
path: root/tap.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-03-06 16:34:23 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-03-13 14:36:59 +0100
commit205b140dec039437f48766427ed05a302d3b3ffa (patch)
tree9c26e15ef80007f955c2732c8cfa721dde3350b1 /tap.c
parent860d2764dd7ce683c0cfeec1ed60dee0c1f2b443 (diff)
downloadpasst-205b140dec039437f48766427ed05a302d3b3ffa.tar
passt-205b140dec039437f48766427ed05a302d3b3ffa.tar.gz
passt-205b140dec039437f48766427ed05a302d3b3ffa.tar.bz2
passt-205b140dec039437f48766427ed05a302d3b3ffa.tar.lz
passt-205b140dec039437f48766427ed05a302d3b3ffa.tar.xz
passt-205b140dec039437f48766427ed05a302d3b3ffa.tar.zst
passt-205b140dec039437f48766427ed05a302d3b3ffa.zip
udp: Refactor udp_sock[46]_iov_init()
Each of these functions have 3 essentially identical loops in a row. Merge the loops into a single common udp_sock_iov_init() function, calling udp_sock[46]_iov_init_one() helpers to initialize each "slot" in the various parallel arrays. This is slightly neater now, and more naturally allows changes we want to make where more initialization will become common between IPv4 and IPv6. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tap.c')
0 files changed, 0 insertions, 0 deletions