genericopt_stub.go 824 B

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