summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/util.go
diff options
context:
space:
mode:
authorMilan Lenco <milan.lenco@pantheon.tech>2021-01-21 13:53:33 +0100
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2021-02-13 18:54:31 +0900
commit3339f97722e35d5ff351ef500de1e61344cbd33d (patch)
tree600f85f5a0cd1440670c62c3fd881a3a6efb0645 /pkg/server/util.go
parentc89a32ea7bbed1780b93431e2f94482df462206e (diff)
feat: add option to bind listener to a (VRF) device
Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
Diffstat (limited to 'pkg/server/util.go')
-rw-r--r--pkg/server/util.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/pkg/server/util.go b/pkg/server/util.go
index c774c6dd..e4abbed0 100644
--- a/pkg/server/util.go
+++ b/pkg/server/util.go
@@ -65,14 +65,6 @@ func decodeAdministrativeCommunication(data []byte) (string, []byte) {
return string(data[1 : communicationLen+1]), data[communicationLen+1:]
}
-func extractFamilyFromTCPListener(l *net.TCPListener) int {
- family := syscall.AF_INET
- if strings.Contains(l.Addr().String(), "[") {
- family = syscall.AF_INET6
- }
- return family
-}
-
func extractFamilyFromTCPConn(conn *net.TCPConn) int {
family := syscall.AF_INET
if strings.Contains(conn.RemoteAddr().String(), "[") {