Commit a5a96aa
committed
bgpd: add neighbor ip-transparent
Implement a per‑neighbor flag that sets IP_TRANSPARENT for the
underlying TCP socket. With this flag bgpd can accept or initiate a
session to/from an address that is not present on the host.
Typical use‑cases:
- running bgpd inside a container without configuring the router
loopback address inside that netns.
- hitless switchover of a keepalived/VRRP VIP: the standby bgpd
can pre‑bind and come up instantly after takeover.
- BGP speakers when the IP address is not set (transparent
firewall).
- others...
It is safeguarded by a CAP_NET_ADMIN.
Signed-off-by: Vincent Jardin <[email protected]>1 parent 2bf0dc8 commit a5a96aa
4 files changed
+53
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
832 | 840 | | |
833 | 841 | | |
834 | 842 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18356 | 18356 | | |
18357 | 18357 | | |
18358 | 18358 | | |
| 18359 | + | |
| 18360 | + | |
| 18361 | + | |
| 18362 | + | |
| 18363 | + | |
| 18364 | + | |
| 18365 | + | |
| 18366 | + | |
| 18367 | + | |
| 18368 | + | |
| 18369 | + | |
| 18370 | + | |
| 18371 | + | |
| 18372 | + | |
| 18373 | + | |
| 18374 | + | |
| 18375 | + | |
| 18376 | + | |
| 18377 | + | |
| 18378 | + | |
| 18379 | + | |
| 18380 | + | |
| 18381 | + | |
| 18382 | + | |
| 18383 | + | |
| 18384 | + | |
| 18385 | + | |
| 18386 | + | |
| 18387 | + | |
| 18388 | + | |
| 18389 | + | |
18359 | 18390 | | |
18360 | 18391 | | |
18361 | 18392 | | |
| |||
18945 | 18976 | | |
18946 | 18977 | | |
18947 | 18978 | | |
| 18979 | + | |
| 18980 | + | |
| 18981 | + | |
| 18982 | + | |
18948 | 18983 | | |
18949 | 18984 | | |
18950 | 18985 | | |
| |||
22134 | 22169 | | |
22135 | 22170 | | |
22136 | 22171 | | |
| 22172 | + | |
| 22173 | + | |
22137 | 22174 | | |
22138 | 22175 | | |
22139 | 22176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1770 | 1770 | | |
1771 | 1771 | | |
1772 | 1772 | | |
| 1773 | + | |
1773 | 1774 | | |
1774 | 1775 | | |
1775 | 1776 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1766 | 1766 | | |
1767 | 1767 | | |
1768 | 1768 | | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
1769 | 1776 | | |
1770 | 1777 | | |
1771 | 1778 | | |
| |||
0 commit comments