...
Run Format

Source file src/net/interface_bsdvar.go

Documentation: net

     1  // Copyright 2011 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // +build dragonfly netbsd openbsd
     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  // interfaceMulticastAddrTable returns addresses for a specific
    24  // interface.
    25  func interfaceMulticastAddrTable(ifi *Interface) ([]Addr, error) {
    26  	// TODO(mikio): Implement this like other platforms.
    27  	return nil, nil
    28  }
    29  

View as plain text