~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/golang.org/x/net/ipv6/genericopt_stub.go

  • Committer: Nicholas Skaggs
  • Date: 2016-10-24 20:56:05 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161024205605-z8lta0uvuhtxwzwl
Initi with beta15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}