]> git.proxmox.com Git - mirror_frr.git/commit - lib/sockunion.c
bgpd-set-somark.patch
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 12 Jun 2015 14:59:11 +0000 (07:59 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 12 Jun 2015 14:59:11 +0000 (07:59 -0700)
commited40466af80c9d0b88436c637a1d54b28a669b1c
treeb092d22e9591da81776a56006dc2883f445b0ddd
parentc43ed2e48af8c787a1ebc4b648f844c44032db35
bgpd-set-somark.patch

BGP: Set SO_MARK on connecting sockets to ensure lookup in right routing table

In the presence of a function such as management VRF/MRF, bgpd needs to be able
to specify that it intends to run in the dataplane and not the front panel.
To ensure this, we add a mark in the connecting socket so that the kernel
does the routing lookup in the right table. This assumes that an appropriate
ip rule has been configured (outside the scope of this package).

While we've forced the mark to be 254 for now, it maybe required to make it
configurable at a later time.
bgpd/bgp_network.c
lib/sockunion.c
lib/sockunion.h