dgramopt_stub.go 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. // Copyright 2013 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // +build nacl plan9 solaris
  5. package ipv6
  6. import "net"
  7. // MulticastHopLimit returns the hop limit field value for outgoing
  8. // multicast packets.
  9. func (c *dgramOpt) MulticastHopLimit() (int, error) {
  10. // TODO(mikio): Implement this
  11. return 0, errOpNoSupport
  12. }
  13. // SetMulticastHopLimit sets the hop limit field value for future
  14. // outgoing multicast packets.
  15. func (c *dgramOpt) SetMulticastHopLimit(hoplim int) error {
  16. // TODO(mikio): Implement this
  17. return errOpNoSupport
  18. }
  19. // MulticastInterface returns the default interface for multicast
  20. // packet transmissions.
  21. func (c *dgramOpt) MulticastInterface() (*net.Interface, error) {
  22. // TODO(mikio): Implement this
  23. return nil, errOpNoSupport
  24. }
  25. // SetMulticastInterface sets the default interface for future
  26. // multicast packet transmissions.
  27. func (c *dgramOpt) SetMulticastInterface(ifi *net.Interface) error {
  28. // TODO(mikio): Implement this
  29. return errOpNoSupport
  30. }
  31. // MulticastLoopback reports whether transmitted multicast packets
  32. // should be copied and send back to the originator.
  33. func (c *dgramOpt) MulticastLoopback() (bool, error) {
  34. // TODO(mikio): Implement this
  35. return false, errOpNoSupport
  36. }
  37. // SetMulticastLoopback sets whether transmitted multicast packets
  38. // should be copied and send back to the originator.
  39. func (c *dgramOpt) SetMulticastLoopback(on bool) error {
  40. // TODO(mikio): Implement this
  41. return errOpNoSupport
  42. }
  43. // JoinGroup joins the group address group on the interface ifi.
  44. // It uses the system assigned multicast interface when ifi is nil,
  45. // although this is not recommended because the assignment depends on
  46. // platforms and sometimes it might require routing configuration.
  47. func (c *dgramOpt) JoinGroup(ifi *net.Interface, group net.Addr) error {
  48. // TODO(mikio): Implement this
  49. return errOpNoSupport
  50. }
  51. // LeaveGroup leaves the group address group on the interface ifi.
  52. func (c *dgramOpt) LeaveGroup(ifi *net.Interface, group net.Addr) error {
  53. // TODO(mikio): Implement this
  54. return errOpNoSupport
  55. }
  56. // Checksum reports whether the kernel will compute, store or verify a
  57. // checksum for both incoming and outgoing packets. If on is true, it
  58. // returns an offset in bytes into the data of where the checksum
  59. // field is located.
  60. func (c *dgramOpt) Checksum() (on bool, offset int, err error) {
  61. // TODO(mikio): Implement this
  62. return false, 0, errOpNoSupport
  63. }
  64. // SetChecksum enables the kernel checksum processing. If on is ture,
  65. // the offset should be an offset in bytes into the data of where the
  66. // checksum field is located.
  67. func (c *dgramOpt) SetChecksum(on bool, offset int) error {
  68. // TODO(mikio): Implement this
  69. return errOpNoSupport
  70. }
  71. // ICMPFilter returns an ICMP filter.
  72. func (c *dgramOpt) ICMPFilter() (*ICMPFilter, error) {
  73. // TODO(mikio): Implement this
  74. return nil, errOpNoSupport
  75. }
  76. // SetICMPFilter deploys the ICMP filter.
  77. func (c *dgramOpt) SetICMPFilter(f *ICMPFilter) error {
  78. // TODO(mikio): Implement this
  79. return errOpNoSupport
  80. }