genericopt_stub.go 769 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2012 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 ipv4
  6. // TOS returns the type-of-service field value for outgoing packets.
  7. func (c *genericOpt) TOS() (int, error) {
  8. return 0, errOpNoSupport
  9. }
  10. // SetTOS sets the type-of-service field value for future outgoing
  11. // packets.
  12. func (c *genericOpt) SetTOS(tos int) error {
  13. return errOpNoSupport
  14. }
  15. // TTL returns the time-to-live field value for outgoing packets.
  16. func (c *genericOpt) TTL() (int, error) {
  17. return 0, errOpNoSupport
  18. }
  19. // SetTTL sets the time-to-live field value for future outgoing
  20. // packets.
  21. func (c *genericOpt) SetTTL(ttl int) error {
  22. return errOpNoSupport
  23. }