github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/net/ipv4/genericopt_stub.go (about) 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 5 // +build nacl plan9 solaris 6 7 package ipv4 8 9 // TOS returns the type-of-service field value for outgoing packets. 10 func (c *genericOpt) TOS() (int, error) { 11 return 0, errOpNoSupport 12 } 13 14 // SetTOS sets the type-of-service field value for future outgoing 15 // packets. 16 func (c *genericOpt) SetTOS(tos int) error { 17 return errOpNoSupport 18 } 19 20 // TTL returns the time-to-live field value for outgoing packets. 21 func (c *genericOpt) TTL() (int, error) { 22 return 0, errOpNoSupport 23 } 24 25 // SetTTL sets the time-to-live field value for future outgoing 26 // packets. 27 func (c *genericOpt) SetTTL(ttl int) error { 28 return errOpNoSupport 29 }