Left: | ||
Right: |
OLD | NEW |
---|---|
1 // Copyright 2014 The Go Authors. All rights reserved. | 1 // Copyright 2014 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // +build dragonfly | |
iant
2014/05/10 00:02:55
You don't need the +build line, given the file nam
mikio
2014/05/14 13:09:00
go/build of go1.1 requires this, but i'll remove t
| |
6 | |
5 package ipv4 | 7 package ipv4 |
6 | 8 |
7 import "syscall" | 9 const ( |
8 | 10 » // See /usr/include/netinet/in.h. |
9 func init() { | 11 » sysSockoptReceiveTTL = 0x41 |
10 » freebsdVersion, _ = syscall.SysctlUint32("kern.osreldate") | 12 » sysSockoptSendSrc = 0x7 |
11 } | 13 » sysSockoptReceiveDst = 0x7 |
14 » sysSockoptReceiveInterface = 0x14 | |
15 ) | |
OLD | NEW |