Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(709)

Delta Between Two Patch Sets: src/pkg/net/interface_stub.go

Issue 5294074: code review 5294074: src/pkg/[n-z]*: gofix -r error (Closed)
Left Patch Set: Created 13 years, 4 months ago
Right Patch Set: diff -r b78bb4f2d2a3 https://go.googlecode.com/hg/ Created 13 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/net/interface_openbsd.go ('k') | src/pkg/net/interface_test.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b