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

Delta Between Two Patch Sets: ipv4/helper_plan9.go

Issue 6482044: code review 6482044: go.net/ipv4: new package (Closed)
Left Patch Set: diff -r 147c4a6dca9b https://code.google.com/p/go.net Created 12 years, 7 months ago
Right Patch Set: diff -r 2513e9008213 https://code.google.com/p/go.net Created 12 years, 6 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « ipv4/helper.go ('k') | ipv4/helper_posix.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
1 // Copyright 2012 The Go Authors. All rights reserved. 1 // Copyright 2012 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 package ipv4 5 package ipv4
6 6
7 import ( 7 import (
8 "net"
9 "os"
10 "syscall" 8 "syscall"
11 ) 9 )
12 10
13 func (c *genericOpt) file() (f *os.File, err error) { 11 func (c *genericOpt) sysfd() (int, error) {
14 » return nil, syscall.EPLAN9 12 » // TODO(mikio): Implement this
13 » return 0, syscall.EPLAN9
15 } 14 }
16 15
17 func (c *dgramOpt) file() (f *os.File, err error) { 16 func (c *dgramOpt) sysfd() (int, error) {
18 » return nil, syscall.EPLAN9 17 » // TODO(mikio): Implement this
18 » return 0, syscall.EPLAN9
19 } 19 }
20 20
21 func (c *packetHandler) file() (f *os.File, err error) { 21 func (c *payloadHandler) sysfd() (int, error) {
22 » return nil, syscall.EPLAN9 22 » // TODO(mikio): Implement this
23 » return 0, syscall.EPLAN9
23 } 24 }
24 25
25 func netAddrToIP4(a net.Addr) net.IP { 26 func (c *packetHandler) sysfd() (int, error) {
26 » return nil 27 » // TODO(mikio): Implement this
28 » return 0, syscall.EPLAN9
27 } 29 }
dave_cheney.net 2012/09/03 11:04:47 Can this be moved a generic helper.go, or preferab
mikio 2012/09/05 03:50:56 Done.
LEFTRIGHT

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