In bgpd_rtr_connect() do the setsockopt dance for IP_TOS and TCP_NODELAY
authorclaudio <claudio@openbsd.org>
Mon, 30 Sep 2024 09:42:24 +0000 (09:42 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 30 Sep 2024 09:42:24 +0000 (09:42 +0000)
commitbc3692b580bc60c1139d13d2dd3ba44e2e37c01a
tree9a9fa7256e0c2fd9311b881a465e8540c10f24e7
parenta1c6091a665e456c0430aae2b957841fbbc8adad
In bgpd_rtr_connect() do the setsockopt dance for IP_TOS and TCP_NODELAY
before calling connect(). This way it happens for sure and on top the TOS
is already set on the initial SYN.
OK tb@
usr.sbin/bgpd/bgpd.c