1
0
mirror of https://github.com/osrg/gobgp.git synced 2024-05-11 05:55:10 +00:00

11 Commits

Author SHA1 Message Date
Joshua DeWald
02fa6129af Implementation of Dynamic Neighbor MD5 (Issue #2589)
Adds usage of the "prefix-based" TCP MD5 for dynamic
neighbors. Non-dynamic neighbors will continue to use
non-prefix based, which makes it more compatible with
running on older kernels, as only 4.14+ includes the
necessary support.

This change also includes tests of dynamic peers in general.
2023-11-07 11:28:12 -08:00
Maxime Peim
e7534de3d2 use TCP MSS configuration 2023-07-25 12:46:48 +09:00
Tobias Klauser
4f52a30b97 server: use SetsockoptTCPMD5Sig from golang.org/x/sys/unix
Use the TCPMD5Sig type and the corresponding SetsockoptTCPMD5Sig func
added upstream in golang.org/x/sys v0.6.0

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2023-03-07 12:05:41 +01:00
FUJITA Tomonori
97aefbb24a decouple logging
gobgp is tightly coupled with logrus and uses the global logrus logger
instance. The uses of gobgp library can't use other logging libraries.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-12-08 10:39:16 +00:00
FUJITA Tomonori
c593d7c8b3 switch to Go API v2 for protobuf
seems that sticking to Go API v1 for protobuf is headache for projects
using GoBGP.

This breaks the compatibility so bumps up the major version to 3.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
2021-12-08 07:22:50 +00:00
Milan Lenco
3339f97722 feat: add option to bind listener to a (VRF) device
Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
2021-02-13 18:54:31 +09:00
Hitoshi Irino
2f5a4d59cb BGP connection on a speecified interface (including which is associated VRF) using syscall SO_BINDTODEVICE 2019-07-02 11:40:22 +09:00
FUJITA Tomonori
598bba9fb2 server: use Dialer Control method instead of hack to modify connection before dialing
Use the feature of go 1.11 to remove the hack.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-12-19 20:11:56 +09:00
FUJITA Tomonori
0b4d946298 server: unexport TCPDialer/TCPListener/TCPSockopt stuff
No need to export them. Also fixed golint errors.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-10-29 18:24:58 +09:00
FUJITA Tomonori
9a0323419e fix closing listening socket blocked
with go v1.11, closing a listening socket is blocked and unittests
fail due to timeout.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-08-31 11:23:13 +09:00
FUJITA Tomonori
c4775c4251 follow Standard Go Project Layout
https://github.com/golang-standards/project-layout

Now you can see clearly what are private and public library code.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2018-07-07 20:44:25 +09:00