mirror of https://gogs.blitter.com/RLabs/xs
40 lines
1.0 KiB
Go
40 lines
1.0 KiB
Go
|
// Copyright 2019 The Go Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style
|
||
|
// license that can be found in the LICENSE file.
|
||
|
|
||
|
// +build ignore
|
||
|
|
||
|
// +godefs map struct_in_addr [4]byte /* in_addr */
|
||
|
|
||
|
package ipv4
|
||
|
|
||
|
/*
|
||
|
#include <netinet/in.h>
|
||
|
*/
|
||
|
import "C"
|
||
|
|
||
|
const (
|
||
|
sysIP_OPTIONS = C.IP_OPTIONS
|
||
|
sysIP_HDRINCL = C.IP_HDRINCL
|
||
|
sysIP_TOS = C.IP_TOS
|
||
|
sysIP_TTL = C.IP_TTL
|
||
|
sysIP_RECVOPTS = C.IP_RECVOPTS
|
||
|
sysIP_RECVRETOPTS = C.IP_RECVRETOPTS
|
||
|
sysIP_RECVDSTADDR = C.IP_RECVDSTADDR
|
||
|
sysIP_RETOPTS = C.IP_RETOPTS
|
||
|
// IP_RECVIF is defined on AIX but doesn't work.
|
||
|
// IP_RECVINTERFACE must be used instead.
|
||
|
sysIP_RECVIF = C.IP_RECVINTERFACE
|
||
|
sysIP_RECVTTL = C.IP_RECVTTL
|
||
|
|
||
|
sysIP_MULTICAST_IF = C.IP_MULTICAST_IF
|
||
|
sysIP_MULTICAST_TTL = C.IP_MULTICAST_TTL
|
||
|
sysIP_MULTICAST_LOOP = C.IP_MULTICAST_LOOP
|
||
|
sysIP_ADD_MEMBERSHIP = C.IP_ADD_MEMBERSHIP
|
||
|
sysIP_DROP_MEMBERSHIP = C.IP_DROP_MEMBERSHIP
|
||
|
|
||
|
sizeofIPMreq = C.sizeof_struct_ip_mreq
|
||
|
)
|
||
|
|
||
|
type ipMreq C.struct_ip_mreq
|