genericopt_stub.go 966 B

12345678910111213141516171819202122232425262728293031323334
  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 dragonfly plan9 solaris
  5. package ipv6
  6. // TrafficClass returns the traffic class field value for outgoing
  7. // packets.
  8. func (c *genericOpt) TrafficClass() (int, error) {
  9. // TODO(mikio): Implement this
  10. return 0, errOpNoSupport
  11. }
  12. // SetTrafficClass sets the traffic class field value for future
  13. // outgoing packets.
  14. func (c *genericOpt) SetTrafficClass(tclass int) error {
  15. // TODO(mikio): Implement this
  16. return errOpNoSupport
  17. }
  18. // HopLimit returns the hop limit field value for outgoing packets.
  19. func (c *genericOpt) HopLimit() (int, error) {
  20. // TODO(mikio): Implement this
  21. return 0, errOpNoSupport
  22. }
  23. // SetHopLimit sets the hop limit field value for future outgoing
  24. // packets.
  25. func (c *genericOpt) SetHopLimit(hoplim int) error {
  26. // TODO(mikio): Implement this
  27. return errOpNoSupport
  28. }