Mikio Hara | cdfc4ce | 2013-06-04 17:42:58 +0900 | [diff] [blame] | 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 | |
Mikio Hara | 1e5c000 | 2014-05-21 09:28:07 +0900 | [diff] [blame] | 5 | // +build nacl plan9 solaris |
Mikio Hara | cdfc4ce | 2013-06-04 17:42:58 +0900 | [diff] [blame] | 6 | |
Mikio Hara | 0cda728 | 2014-01-23 06:36:22 +0100 | [diff] [blame] | 7 | package ipv6 |
Mikio Hara | cdfc4ce | 2013-06-04 17:42:58 +0900 | [diff] [blame] | 8 | |
| 9 | // TrafficClass returns the traffic class field value for outgoing |
| 10 | // packets. |
| 11 | func (c *genericOpt) TrafficClass() (int, error) { |
Mikio Hara | 0cda728 | 2014-01-23 06:36:22 +0100 | [diff] [blame] | 12 | return 0, errOpNoSupport |
Mikio Hara | cdfc4ce | 2013-06-04 17:42:58 +0900 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | // SetTrafficClass sets the traffic class field value for future |
| 16 | // outgoing packets. |
| 17 | func (c *genericOpt) SetTrafficClass(tclass int) error { |
Mikio Hara | 0cda728 | 2014-01-23 06:36:22 +0100 | [diff] [blame] | 18 | return errOpNoSupport |
Mikio Hara | cdfc4ce | 2013-06-04 17:42:58 +0900 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | // HopLimit returns the hop limit field value for outgoing packets. |
| 22 | func (c *genericOpt) HopLimit() (int, error) { |
Mikio Hara | 0cda728 | 2014-01-23 06:36:22 +0100 | [diff] [blame] | 23 | return 0, errOpNoSupport |
Mikio Hara | cdfc4ce | 2013-06-04 17:42:58 +0900 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | // SetHopLimit sets the hop limit field value for future outgoing |
| 27 | // packets. |
| 28 | func (c *genericOpt) SetHopLimit(hoplim int) error { |
Mikio Hara | 0cda728 | 2014-01-23 06:36:22 +0100 | [diff] [blame] | 29 | return errOpNoSupport |
Mikio Hara | cdfc4ce | 2013-06-04 17:42:58 +0900 | [diff] [blame] | 30 | } |