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