blob: f5c3722421d36584759e730795b5cbfdc1f5b16e [file] [log] [blame]
Mikio Haracdfc4ce2013-06-04 17:42:58 +09001// 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 Hara1e5c0002014-05-21 09:28:07 +09005// +build nacl plan9 solaris
Mikio Haracdfc4ce2013-06-04 17:42:58 +09006
Mikio Hara0cda7282014-01-23 06:36:22 +01007package ipv6
Mikio Haracdfc4ce2013-06-04 17:42:58 +09008
9// TrafficClass returns the traffic class field value for outgoing
10// packets.
11func (c *genericOpt) TrafficClass() (int, error) {
Mikio Hara0cda7282014-01-23 06:36:22 +010012 return 0, errOpNoSupport
Mikio Haracdfc4ce2013-06-04 17:42:58 +090013}
14
15// SetTrafficClass sets the traffic class field value for future
16// outgoing packets.
17func (c *genericOpt) SetTrafficClass(tclass int) error {
Mikio Hara0cda7282014-01-23 06:36:22 +010018 return errOpNoSupport
Mikio Haracdfc4ce2013-06-04 17:42:58 +090019}
20
21// HopLimit returns the hop limit field value for outgoing packets.
22func (c *genericOpt) HopLimit() (int, error) {
Mikio Hara0cda7282014-01-23 06:36:22 +010023 return 0, errOpNoSupport
Mikio Haracdfc4ce2013-06-04 17:42:58 +090024}
25
26// SetHopLimit sets the hop limit field value for future outgoing
27// packets.
28func (c *genericOpt) SetHopLimit(hoplim int) error {
Mikio Hara0cda7282014-01-23 06:36:22 +010029 return errOpNoSupport
Mikio Haracdfc4ce2013-06-04 17:42:58 +090030}