aboutgitcodebugslistschat
diff options
context:
space:
mode:
-rw-r--r--udp.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/udp.c b/udp.c
index b5b8f8a..b240185 100644
--- a/udp.c
+++ b/udp.c
@@ -1042,22 +1042,6 @@ int udp_sock_init(const struct ctx *c, int ns, sa_family_t af,
}
/**
- * 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);
}