blob: 1817badb171a7634ac512d180de08a368d253157 [file] [log] [blame]
Mikio Harad2e5a122012-09-26 21:03:09 +09001// 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
Mikio Harac6460482014-05-21 09:27:50 +09005// +build nacl plan9 solaris
Mikio Harad2e5a122012-09-26 21:03:09 +09006
Mikio Haraf3b815b2014-01-28 22:24:32 +01007package ipv4
Mikio Harad2e5a122012-09-26 21:03:09 +09008
Mikio Hara3809e742014-11-22 11:21:45 +09009// TOS returns the type-of-service field value for outgoing packets.
Mikio Harad2e5a122012-09-26 21:03:09 +090010func (c *genericOpt) TOS() (int, error) {
Mikio Haraf3b815b2014-01-28 22:24:32 +010011 return 0, errOpNoSupport
Mikio Harad2e5a122012-09-26 21:03:09 +090012}
13
Mikio Hara3809e742014-11-22 11:21:45 +090014// SetTOS sets the type-of-service field value for future outgoing
15// packets.
Mikio Harad2e5a122012-09-26 21:03:09 +090016func (c *genericOpt) SetTOS(tos int) error {
Mikio Haraf3b815b2014-01-28 22:24:32 +010017 return errOpNoSupport
Mikio Harad2e5a122012-09-26 21:03:09 +090018}
19
Mikio Hara3809e742014-11-22 11:21:45 +090020// TTL returns the time-to-live field value for outgoing packets.
Mikio Harad2e5a122012-09-26 21:03:09 +090021func (c *genericOpt) TTL() (int, error) {
Mikio Haraf3b815b2014-01-28 22:24:32 +010022 return 0, errOpNoSupport
Mikio Harad2e5a122012-09-26 21:03:09 +090023}
24
Mikio Hara3809e742014-11-22 11:21:45 +090025// SetTTL sets the time-to-live field value for future outgoing
26// packets.
Mikio Harad2e5a122012-09-26 21:03:09 +090027func (c *genericOpt) SetTTL(ttl int) error {
Mikio Haraf3b815b2014-01-28 22:24:32 +010028 return errOpNoSupport
Mikio Harad2e5a122012-09-26 21:03:09 +090029}