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

Delta Between Two Patch Sets: ipv4/sys_windows.go

Issue 97800043: code review 97800043: go.net/ipv4: add support for dragonfly (Closed)
Left Patch Set: diff -r 424a15ce8b2f https://code.google.com/p/go.net Created 9 years, 11 months ago
Right Patch Set: diff -r 9c33002573cb https://code.google.com/p/go.net Created 9 years, 10 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « ipv4/sys_mreq.go ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 package ipv4 5 package ipv4
6 6
7 import "syscall"
8
7 const ( 9 const (
8 // See ws2tcpip.h. 10 // See ws2tcpip.h.
9 sysSockoptHeaderPrepend = 0x2 11 sysSockoptHeaderPrepend = 0x2
10 » sysSockoptTOS = 0x3 12 » sysSockoptTOS = syscall.IP_TOS
11 » sysSockoptTTL = 0x4 13 » sysSockoptTTL = syscall.IP_TTL
12 » sysSockoptMulticastTTL = 0xa 14 » sysSockoptMulticastTTL = syscall.IP_MULTICAST_TTL
13 » sysSockoptMulticastInterface = 0x9 15 » sysSockoptMulticastInterface = syscall.IP_MULTICAST_IF
14 » sysSockoptMulticastLoopback = 0xb 16 » sysSockoptMulticastLoopback = syscall.IP_MULTICAST_LOOP
15 » sysSockoptJoinGroup = 0xc 17 » sysSockoptJoinGroup = syscall.IP_ADD_MEMBERSHIP
16 » sysSockoptLeaveGroup = 0xd 18 » sysSockoptLeaveGroup = syscall.IP_DROP_MEMBERSHIP
17 ) 19 )
18 20
19 const ( 21 const (
20 // See ws2tcpip.h. 22 // See ws2tcpip.h.
21 sysSockoptPacketInfo = 0x13 23 sysSockoptPacketInfo = 0x13
22 ) 24 )
23 25
24 const ( 26 const sysSizeofPacketInfo = 0x8
25 » sysSizeofPacketInfo = 0x8
26 )
27 27
28 type sysPacketInfo struct { 28 type sysPacketInfo struct {
29 IP [4]byte 29 IP [4]byte
30 » IfIndex uint32 30 » IfIndex int32
31 } 31 }
LEFTRIGHT

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