@@ -11,42 +11,36 @@ import "net"
11
11
// MulticastHopLimit returns the hop limit field value for outgoing
12
12
// multicast packets.
13
13
func (c * dgramOpt ) MulticastHopLimit () (int , error ) {
14
- // TODO(mikio): Implement this
15
14
return 0 , errOpNoSupport
16
15
}
17
16
18
17
// SetMulticastHopLimit sets the hop limit field value for future
19
18
// outgoing multicast packets.
20
19
func (c * dgramOpt ) SetMulticastHopLimit (hoplim int ) error {
21
- // TODO(mikio): Implement this
22
20
return errOpNoSupport
23
21
}
24
22
25
23
// MulticastInterface returns the default interface for multicast
26
24
// packet transmissions.
27
25
func (c * dgramOpt ) MulticastInterface () (* net.Interface , error ) {
28
- // TODO(mikio): Implement this
29
26
return nil , errOpNoSupport
30
27
}
31
28
32
29
// SetMulticastInterface sets the default interface for future
33
30
// multicast packet transmissions.
34
31
func (c * dgramOpt ) SetMulticastInterface (ifi * net.Interface ) error {
35
- // TODO(mikio): Implement this
36
32
return errOpNoSupport
37
33
}
38
34
39
35
// MulticastLoopback reports whether transmitted multicast packets
40
36
// should be copied and send back to the originator.
41
37
func (c * dgramOpt ) MulticastLoopback () (bool , error ) {
42
- // TODO(mikio): Implement this
43
38
return false , errOpNoSupport
44
39
}
45
40
46
41
// SetMulticastLoopback sets whether transmitted multicast packets
47
42
// should be copied and send back to the originator.
48
43
func (c * dgramOpt ) SetMulticastLoopback (on bool ) error {
49
- // TODO(mikio): Implement this
50
44
return errOpNoSupport
51
45
}
52
46
@@ -55,13 +49,11 @@ func (c *dgramOpt) SetMulticastLoopback(on bool) error {
55
49
// although this is not recommended because the assignment depends on
56
50
// platforms and sometimes it might require routing configuration.
57
51
func (c * dgramOpt ) JoinGroup (ifi * net.Interface , group net.Addr ) error {
58
- // TODO(mikio): Implement this
59
52
return errOpNoSupport
60
53
}
61
54
62
55
// LeaveGroup leaves the group address group on the interface ifi.
63
56
func (c * dgramOpt ) LeaveGroup (ifi * net.Interface , group net.Addr ) error {
64
- // TODO(mikio): Implement this
65
57
return errOpNoSupport
66
58
}
67
59
@@ -70,26 +62,22 @@ func (c *dgramOpt) LeaveGroup(ifi *net.Interface, group net.Addr) error {
70
62
// returns an offset in bytes into the data of where the checksum
71
63
// field is located.
72
64
func (c * dgramOpt ) Checksum () (on bool , offset int , err error ) {
73
- // TODO(mikio): Implement this
74
65
return false , 0 , errOpNoSupport
75
66
}
76
67
77
68
// SetChecksum enables the kernel checksum processing. If on is ture,
78
69
// the offset should be an offset in bytes into the data of where the
79
70
// checksum field is located.
80
71
func (c * dgramOpt ) SetChecksum (on bool , offset int ) error {
81
- // TODO(mikio): Implement this
82
72
return errOpNoSupport
83
73
}
84
74
85
75
// ICMPFilter returns an ICMP filter.
86
76
func (c * dgramOpt ) ICMPFilter () (* ICMPFilter , error ) {
87
- // TODO(mikio): Implement this
88
77
return nil , errOpNoSupport
89
78
}
90
79
91
80
// SetICMPFilter deploys the ICMP filter.
92
81
func (c * dgramOpt ) SetICMPFilter (f * ICMPFilter ) error {
93
- // TODO(mikio): Implement this
94
82
return errOpNoSupport
95
83
}
0 commit comments