]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: justify capabilities for TOS setting
authorChris Luke <chrisy@flirble.org>
Tue, 18 Oct 2011 13:26:51 +0000 (17:26 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 15 Nov 2011 16:57:02 +0000 (20:57 +0400)
commit5c88f19d5b166c6afa8a9b8501badb785afa553b
tree98261a13d284bb6b3fe0028a3d17e50c763fc324
parent4de148e5d6f6f7885b2c0952a236a3bc3ec36250
bgpd: justify capabilities for TOS setting

To set the TOS bits on TCP connections, platforms that restrict
capabilities need the priv level to be raised before the sockopt
is set, and this requires the ZCAP_NET_ADMIN priv.

* bgp_main.c: update _caps_p to include ZCAP_NET_ADMIN
* bgp_network.c
  * bgp_connect(): request ZPRIVS_RAISE/ZPRIVS_LOWER
  * bgp_listener(): request ZPRIVS_RAISE earlier
bgpd/bgp_main.c
bgpd/bgp_network.c