interface_bsdvar.mx raw

   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  //go:build dragonfly || netbsd || openbsd
   6  
   7  package net
   8  
   9  import (
  10  	"internal/routebsd"
  11  	"syscall"
  12  )
  13  
  14  func interfaceMessages(ifindex int) ([]routebsd.Message, error) {
  15  	return routebsd.FetchRIBMessages(syscall.NET_RT_IFLIST, ifindex)
  16  }
  17  
  18  // interfaceMulticastAddrTable returns addresses for a specific
  19  // interface.
  20  func interfaceMulticastAddrTable(ifi *Interface) ([]Addr, error) {
  21  	// TODO(mikio): Implement this like other platforms.
  22  	return nil, nil
  23  }
  24