github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/net/ipv6/genericopt_stub.go (about) 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 5 // +build nacl plan9 solaris 6 7 package ipv6 8 9 // TrafficClass returns the traffic class field value for outgoing 10 // packets. 11 func (c *genericOpt) TrafficClass() (int, error) { 12 return 0, errOpNoSupport 13 } 14 15 // SetTrafficClass sets the traffic class field value for future 16 // outgoing packets. 17 func (c *genericOpt) SetTrafficClass(tclass int) error { 18 return errOpNoSupport 19 } 20 21 // HopLimit returns the hop limit field value for outgoing packets. 22 func (c *genericOpt) HopLimit() (int, error) { 23 return 0, errOpNoSupport 24 } 25 26 // SetHopLimit sets the hop limit field value for future outgoing 27 // packets. 28 func (c *genericOpt) SetHopLimit(hoplim int) error { 29 return errOpNoSupport 30 }