LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2011 The Go Authors. All rights reserved. | 1 // Copyright 2011 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // +build plan9 | 5 // +build plan9 |
6 | 6 |
7 // Network interface identification | 7 // Network interface identification |
8 | 8 |
9 package net | 9 package net |
10 | 10 |
11 import "os" | |
12 | |
13 // If the ifindex is zero, interfaceTable returns mappings of all | 11 // If the ifindex is zero, interfaceTable returns mappings of all |
14 // network interfaces. Otheriwse it returns a mapping of a specific | 12 // network interfaces. Otheriwse it returns a mapping of a specific |
15 // interface. | 13 // interface. |
16 func interfaceTable(ifindex int) ([]Interface, os.Error) { | 14 func interfaceTable(ifindex int) ([]Interface, error) { |
17 return nil, nil | 15 return nil, nil |
18 } | 16 } |
19 | 17 |
20 // If the ifindex is zero, interfaceAddrTable returns addresses | 18 // If the ifindex is zero, interfaceAddrTable returns addresses |
21 // for all network interfaces. Otherwise it returns addresses | 19 // for all network interfaces. Otherwise it returns addresses |
22 // for a specific interface. | 20 // for a specific interface. |
23 func interfaceAddrTable(ifindex int) ([]Addr, os.Error) { | 21 func interfaceAddrTable(ifindex int) ([]Addr, error) { |
24 return nil, nil | 22 return nil, nil |
25 } | 23 } |
26 | 24 |
27 // If the ifindex is zero, interfaceMulticastAddrTable returns | 25 // If the ifindex is zero, interfaceMulticastAddrTable returns |
28 // addresses for all network interfaces. Otherwise it returns | 26 // addresses for all network interfaces. Otherwise it returns |
29 // addresses for a specific interface. | 27 // addresses for a specific interface. |
30 func interfaceMulticastAddrTable(ifindex int) ([]Addr, os.Error) { | 28 func interfaceMulticastAddrTable(ifindex int) ([]Addr, error) { |
31 return nil, nil | 29 return nil, nil |
32 } | 30 } |
LEFT | RIGHT |