mirror of
https://git.freebsd.org/ports.git
synced 2025-07-11 14:29:17 -04:00
GoBGP: BGP implementation in Go GoBGP is an open source BGP implementation designed from scratch for modern environment and implemented in a modern programming language, the Go Programming Language. WWW: https://github.com/osrg/gobgp PR: 218678 Submitted by: nork@ninth-nine.com, John W. O'Brien <john@saltant.com>
17 lines
709 B
Go
17 lines
709 B
Go
--- server/sockopt_bsd.go.orig 2018-02-09 18:45:37 UTC
|
|
+++ server/sockopt_bsd.go
|
|
@@ -23,13 +23,12 @@ import (
|
|
)
|
|
|
|
const (
|
|
- TCP_MD5SIG = 0x10 // TCP MD5 Signature (RFC2385)
|
|
IPV6_MINHOPCOUNT = 73 // Generalized TTL Security Mechanism (RFC5082)
|
|
)
|
|
|
|
func setsockoptTcpMD5Sig(fd int, address string, key string) error {
|
|
// always enable and assumes that the configuration is done by setkey()
|
|
- return os.NewSyscallError("setsockopt", syscall.SetsockoptInt(fd, syscall.IPPROTO_TCP, TCP_MD5SIG, 1))
|
|
+ return os.NewSyscallError("setsockopt", syscall.SetsockoptInt(fd, syscall.IPPROTO_TCP, syscall.TCP_MD5SIG, 1))
|
|
}
|
|
|
|
func setTcpMD5SigSockopt(l *net.TCPListener, address string, key string) error {
|