Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(56)

Side by Side Diff: ipv4/sys_dragonfly.go

Issue 97800043: code review 97800043: go.net/ipv4: add support for dragonfly (Closed)
Patch Set: diff -r 88fa30947066 https://code.google.com/p/go.net Created 9 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
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 )
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b