ports/net/gobgp/files/patch-server_sockopt__bsd.go
Kurt Jaeger 746617409c New port: net/gobgp
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>
2018-02-27 18:19:54 +00:00

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 {