...
Source file
src/net/interface_bsdvar.go
Documentation: net
1
2
3
4
5
6
7
8 package net
9
10 import (
11 "syscall"
12
13 "golang.org/x/net/route"
14 )
15
16 func interfaceMessages(ifindex int) ([]route.Message, error) {
17 rib, err := route.FetchRIB(syscall.AF_UNSPEC, syscall.NET_RT_IFLIST, ifindex)
18 if err != nil {
19 return nil, err
20 }
21 return route.ParseRIB(syscall.NET_RT_IFLIST, rib)
22 }
23
24
25
26 func interfaceMulticastAddrTable(ifi *Interface) ([]Addr, error) {
27
28 return nil, nil
29 }
30
View as plain text