diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-05-24 14:30:53 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-05-24 14:35:35 +0200 |
commit | 51da3896265c601f79f765122e73304cf0943f70 (patch) | |
tree | c7ca7bfcaf15e9ff724ca4a2c52ffd4c5be855f6 /lib/sockunion.c | |
parent | bgpd: Display FD used for peer (diff) | |
download | frr-51da3896265c601f79f765122e73304cf0943f70.tar.xz frr-51da3896265c601f79f765122e73304cf0943f70.zip |
bgpd, lib: Remove SO_MARK
The SO_MARK socket option was being used pre vrf to allow for the
separation of the front panel -vs- the management port. This
was facilitated by a ip rule. Since this is undocumented anywhere
in our system( other than old commits see
ed40466af80c9d0b88436c637a1d54b28a669b1c ). We should remove this
because this will cause interference with people using rules
and are not aware of this offshoot of functionality.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/sockunion.c')
-rw-r--r-- | lib/sockunion.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/sockunion.c b/lib/sockunion.c index 5afd10eb4..8fa9a3fad 100644 --- a/lib/sockunion.c +++ b/lib/sockunion.c @@ -366,21 +366,6 @@ int sockopt_cork(int sock, int onoff) return 0; } -int sockopt_mark_default(int sock, int mark, struct zebra_privs_t *cap) -{ -#ifdef SO_MARK - int ret; - - frr_elevate_privs(cap) { - ret = setsockopt(sock, SOL_SOCKET, SO_MARK, &mark, - sizeof(mark)); - } - return ret; -#else - return 0; -#endif -} - int sockopt_minttl(int family, int sock, int minttl) { #ifdef IP_MINTTL |