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.
5
// +build darwin freebsd linux netbsd openbsd windows
13
// TOS returns the type-of-service field value for outgoing packets.
14
func (c *genericOpt) TOS() (int, error) {
16
return 0, syscall.EINVAL
25
// SetTOS sets the type-of-service field value for future outgoing
27
func (c *genericOpt) SetTOS(tos int) error {
35
return setIPv4TOS(fd, tos)
38
// TTL returns the time-to-live field value for outgoing packets.
39
func (c *genericOpt) TTL() (int, error) {
41
return 0, syscall.EINVAL
50
// SetTTL sets the time-to-live field value for future outgoing
52
func (c *genericOpt) SetTTL(ttl int) error {
60
return setIPv4TTL(fd, ttl)