From 470740f97bfa61c3c5c79d6f2d92f2014a119031 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Wed, 2 Jan 2019 16:01:21 +0100 Subject: BGP: Better dispatch of incoming connections Since v2 we have multiple listening BGP sockets, and each BGP protocol has associated one of them. Use listening socket that accepted the incoming connection as a key in the dispatch process so only BGP protocols assocaited with that listening socket can be selected. This is necesary for proper dispatch when VRFs are used. --- sysdep/unix/io.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sysdep/unix') diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index a511e88e..d1d86e3b 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -1077,6 +1077,7 @@ sk_passive_connected(sock *s, int type) sock *t = sk_new(s->pool); t->type = type; + t->data = s->data; t->af = s->af; t->fd = fd; t->ttl = s->ttl; -- cgit v1.2.3