diff --git a/udp.c b/udp.c index b5b8f8a..b240185 100644 --- a/udp.c +++ b/udp.c @@ -1041,22 +1041,6 @@ int udp_sock_init(const struct ctx *c, int ns, sa_family_t af, return r4 < 0 ? r4 : r6; } -/** - * udp_sock_init_init() - Bind sockets in init namespace for inbound connections - * @c: Execution context - */ -static void udp_sock_init_init(const struct ctx *c) -{ - unsigned dst; - - for (dst = 0; dst < NUM_PORTS; dst++) { - if (!bitmap_isset(c->udp.fwd_in.f.map, dst)) - continue; - - udp_sock_init(c, 0, AF_UNSPEC, NULL, NULL, dst); - } -} - /** * udp_sock_init_ns() - Bind sockets in namespace for outbound connections * @arg: Execution context @@ -1125,7 +1109,6 @@ int udp_init(struct ctx *c) if (c->mode == MODE_PASTA) { udp_splice_iov_init(); - udp_sock_init_init(c); NS_CALL(udp_sock_init_ns, c); }