[PATCH 0/3] RFC: Reduce differences between inbound and outbound socket binding
The fact that outbound forwarding sockets are bound to the loopback address, whereas inbound forwarding sockets are (by default) bound to the unspecified address leads to some unexpected differences between the paths setting up each of them. Happily there's an approach to tackling bug 100 which also reduces those differences, allowing more code to be shared between the two paths. Amongst other things, this will make the next steps of flexible forwarding configuration easier. Link: https://bugs.passt.top/show_bug.cgi?id=100 David Gibson (3): tcp: Merge tcp_ns_sock_init[46]() into tcp_sock_init_one() udp: Unify some more inbound/outbound parts of udp_sock_init() tcp, udp: Bind outbound listening sockets by interface instead of address conf.c | 4 +-- pif.c | 6 ---- tcp.c | 110 +++++++++++++++------------------------------------------ tcp.h | 5 +-- udp.c | 55 +++++++++++++---------------- udp.h | 5 +-- 6 files changed, 61 insertions(+), 124 deletions(-) -- 2.51.0
participants (1)
-
David Gibson