Brad Fitzpatrick | 5194744 | 2016-03-01 22:57:46 +0000 | [diff] [blame] | 1 | // Copyright 2011 The Go Authors. All rights reserved. |
Mikio Hara | 518331d | 2011-06-03 14:35:42 -0400 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
Dave Cheney | 7c8280c | 2014-02-25 09:47:42 -0500 | [diff] [blame] | 5 | // +build nacl plan9 solaris |
Russ Cox | 2715956 | 2011-09-15 16:48:57 -0400 | [diff] [blame] | 6 | |
Mikio Hara | 518331d | 2011-06-03 14:35:42 -0400 | [diff] [blame] | 7 | package net |
| 8 | |
Mikio Hara | 518331d | 2011-06-03 14:35:42 -0400 | [diff] [blame] | 9 | // If the ifindex is zero, interfaceTable returns mappings of all |
Brad Fitzpatrick | 5fea2cc | 2016-03-01 23:21:55 +0000 | [diff] [blame] | 10 | // network interfaces. Otherwise it returns a mapping of a specific |
Mikio Hara | 518331d | 2011-06-03 14:35:42 -0400 | [diff] [blame] | 11 | // interface. |
Russ Cox | eb69292 | 2011-11-01 22:05:34 -0400 | [diff] [blame] | 12 | func interfaceTable(ifindex int) ([]Interface, error) { |
Mikio Hara | 518331d | 2011-06-03 14:35:42 -0400 | [diff] [blame] | 13 | return nil, nil |
| 14 | } |
| 15 | |
Mikio Hara | 322214c | 2013-02-28 14:58:41 +0900 | [diff] [blame] | 16 | // If the ifi is nil, interfaceAddrTable returns addresses for all |
Brad Fitzpatrick | 5fea2cc | 2016-03-01 23:21:55 +0000 | [diff] [blame] | 17 | // network interfaces. Otherwise it returns addresses for a specific |
Mikio Hara | 322214c | 2013-02-28 14:58:41 +0900 | [diff] [blame] | 18 | // interface. |
| 19 | func interfaceAddrTable(ifi *Interface) ([]Addr, error) { |
Mikio Hara | 518331d | 2011-06-03 14:35:42 -0400 | [diff] [blame] | 20 | return nil, nil |
| 21 | } |
Mikio Hara | 946cb0e | 2011-08-04 00:22:52 -0400 | [diff] [blame] | 22 | |
Mikio Hara | 322214c | 2013-02-28 14:58:41 +0900 | [diff] [blame] | 23 | // interfaceMulticastAddrTable returns addresses for a specific |
| 24 | // interface. |
| 25 | func interfaceMulticastAddrTable(ifi *Interface) ([]Addr, error) { |
Mikio Hara | 946cb0e | 2011-08-04 00:22:52 -0400 | [diff] [blame] | 26 | return nil, nil |
| 27 | } |