Left: | ||
Right: |
LEFT | RIGHT |
---|---|
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.
| |
LEFT | RIGHT |