mirror of
https://github.com/golang/go
synced 2024-11-25 07:07:57 -07:00
syscall: add route flags for linux
R=golang-dev CC=golang-dev https://golang.org/cl/4956069
This commit is contained in:
parent
72dcab1c40
commit
940932056e
@ -40,6 +40,7 @@ includes_Linux='
|
||||
#include <linux/wait.h>
|
||||
#include <net/if.h>
|
||||
#include <net/if_arp.h>
|
||||
#include <net/route.h>
|
||||
#include <netpacket/packet.h>
|
||||
'
|
||||
|
||||
@ -168,7 +169,7 @@ done
|
||||
$2 ~ /^LINUX_REBOOT_CMD_/ ||
|
||||
$2 ~ /^LINUX_REBOOT_MAGIC[12]$/ ||
|
||||
$2 !~ "NLA_TYPE_MASK" &&
|
||||
$2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|RTM|RTN|RTPROT|RTA|RTAX|RTNH|ARPHRD|ETH_P)_/ ||
|
||||
$2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|RT|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P)_/ ||
|
||||
$2 ~ /^SIOC/ ||
|
||||
$2 ~ /^TIOC/ ||
|
||||
$2 ~ /^(IFF|IFT|NET_RT|RTM|RTF|RTV|RTA|RTAX)_/ ||
|
||||
|
@ -828,6 +828,42 @@ const (
|
||||
RTAX_WINDOW = 0x3
|
||||
RTA_ALIGNTO = 0x4
|
||||
RTA_MAX = 0xf
|
||||
RTCF_DIRECTSRC = 0x4000000
|
||||
RTCF_DOREDIRECT = 0x1000000
|
||||
RTCF_LOG = 0x2000000
|
||||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
RTF_BROADCAST = 0x10000000
|
||||
RTF_CACHE = 0x1000000
|
||||
RTF_DEFAULT = 0x10000
|
||||
RTF_DYNAMIC = 0x10
|
||||
RTF_FLOW = 0x2000000
|
||||
RTF_GATEWAY = 0x2
|
||||
RTF_HOST = 0x4
|
||||
RTF_INTERFACE = 0x40000000
|
||||
RTF_IRTT = 0x100
|
||||
RTF_LINKRT = 0x100000
|
||||
RTF_LOCAL = 0x80000000
|
||||
RTF_MODIFIED = 0x20
|
||||
RTF_MSS = 0x40
|
||||
RTF_MTU = 0x40
|
||||
RTF_MULTICAST = 0x20000000
|
||||
RTF_NAT = 0x8000000
|
||||
RTF_NOFORWARD = 0x1000
|
||||
RTF_NONEXTHOP = 0x200000
|
||||
RTF_NOPMTUDISC = 0x4000
|
||||
RTF_POLICY = 0x4000000
|
||||
RTF_REINSTATE = 0x8
|
||||
RTF_REJECT = 0x200
|
||||
RTF_STATIC = 0x400
|
||||
RTF_THROW = 0x2000
|
||||
RTF_UP = 0x1
|
||||
RTF_WINDOW = 0x80
|
||||
RTF_XRESOLVE = 0x800
|
||||
RTM_BASE = 0x10
|
||||
RTM_DELACTION = 0x31
|
||||
RTM_DELADDR = 0x15
|
||||
@ -895,6 +931,11 @@ const (
|
||||
RTPROT_UNSPEC = 0
|
||||
RTPROT_XORP = 0xe
|
||||
RTPROT_ZEBRA = 0xb
|
||||
RT_CLASS_DEFAULT = 0xfd
|
||||
RT_CLASS_LOCAL = 0xff
|
||||
RT_CLASS_MAIN = 0xfe
|
||||
RT_CLASS_MAX = 0xff
|
||||
RT_CLASS_UNSPEC = 0
|
||||
SCM_CREDENTIALS = 0x2
|
||||
SCM_RIGHTS = 0x1
|
||||
SCM_TIMESTAMP = 0x1d
|
||||
|
@ -829,6 +829,42 @@ const (
|
||||
RTAX_WINDOW = 0x3
|
||||
RTA_ALIGNTO = 0x4
|
||||
RTA_MAX = 0xf
|
||||
RTCF_DIRECTSRC = 0x4000000
|
||||
RTCF_DOREDIRECT = 0x1000000
|
||||
RTCF_LOG = 0x2000000
|
||||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
RTF_BROADCAST = 0x10000000
|
||||
RTF_CACHE = 0x1000000
|
||||
RTF_DEFAULT = 0x10000
|
||||
RTF_DYNAMIC = 0x10
|
||||
RTF_FLOW = 0x2000000
|
||||
RTF_GATEWAY = 0x2
|
||||
RTF_HOST = 0x4
|
||||
RTF_INTERFACE = 0x40000000
|
||||
RTF_IRTT = 0x100
|
||||
RTF_LINKRT = 0x100000
|
||||
RTF_LOCAL = 0x80000000
|
||||
RTF_MODIFIED = 0x20
|
||||
RTF_MSS = 0x40
|
||||
RTF_MTU = 0x40
|
||||
RTF_MULTICAST = 0x20000000
|
||||
RTF_NAT = 0x8000000
|
||||
RTF_NOFORWARD = 0x1000
|
||||
RTF_NONEXTHOP = 0x200000
|
||||
RTF_NOPMTUDISC = 0x4000
|
||||
RTF_POLICY = 0x4000000
|
||||
RTF_REINSTATE = 0x8
|
||||
RTF_REJECT = 0x200
|
||||
RTF_STATIC = 0x400
|
||||
RTF_THROW = 0x2000
|
||||
RTF_UP = 0x1
|
||||
RTF_WINDOW = 0x80
|
||||
RTF_XRESOLVE = 0x800
|
||||
RTM_BASE = 0x10
|
||||
RTM_DELACTION = 0x31
|
||||
RTM_DELADDR = 0x15
|
||||
@ -896,6 +932,11 @@ const (
|
||||
RTPROT_UNSPEC = 0
|
||||
RTPROT_XORP = 0xe
|
||||
RTPROT_ZEBRA = 0xb
|
||||
RT_CLASS_DEFAULT = 0xfd
|
||||
RT_CLASS_LOCAL = 0xff
|
||||
RT_CLASS_MAIN = 0xfe
|
||||
RT_CLASS_MAX = 0xff
|
||||
RT_CLASS_UNSPEC = 0
|
||||
SCM_CREDENTIALS = 0x2
|
||||
SCM_RIGHTS = 0x1
|
||||
SCM_TIMESTAMP = 0x1d
|
||||
|
@ -822,6 +822,42 @@ const (
|
||||
RTAX_WINDOW = 0x3
|
||||
RTA_ALIGNTO = 0x4
|
||||
RTA_MAX = 0xf
|
||||
RTCF_DIRECTSRC = 0x4000000
|
||||
RTCF_DOREDIRECT = 0x1000000
|
||||
RTCF_LOG = 0x2000000
|
||||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
RTF_BROADCAST = 0x10000000
|
||||
RTF_CACHE = 0x1000000
|
||||
RTF_DEFAULT = 0x10000
|
||||
RTF_DYNAMIC = 0x10
|
||||
RTF_FLOW = 0x2000000
|
||||
RTF_GATEWAY = 0x2
|
||||
RTF_HOST = 0x4
|
||||
RTF_INTERFACE = 0x40000000
|
||||
RTF_IRTT = 0x100
|
||||
RTF_LINKRT = 0x100000
|
||||
RTF_LOCAL = 0x80000000
|
||||
RTF_MODIFIED = 0x20
|
||||
RTF_MSS = 0x40
|
||||
RTF_MTU = 0x40
|
||||
RTF_MULTICAST = 0x20000000
|
||||
RTF_NAT = 0x8000000
|
||||
RTF_NOFORWARD = 0x1000
|
||||
RTF_NONEXTHOP = 0x200000
|
||||
RTF_NOPMTUDISC = 0x4000
|
||||
RTF_POLICY = 0x4000000
|
||||
RTF_REINSTATE = 0x8
|
||||
RTF_REJECT = 0x200
|
||||
RTF_STATIC = 0x400
|
||||
RTF_THROW = 0x2000
|
||||
RTF_UP = 0x1
|
||||
RTF_WINDOW = 0x80
|
||||
RTF_XRESOLVE = 0x800
|
||||
RTM_BASE = 0x10
|
||||
RTM_DELACTION = 0x31
|
||||
RTM_DELADDR = 0x15
|
||||
@ -889,6 +925,11 @@ const (
|
||||
RTPROT_UNSPEC = 0
|
||||
RTPROT_XORP = 0xe
|
||||
RTPROT_ZEBRA = 0xb
|
||||
RT_CLASS_DEFAULT = 0xfd
|
||||
RT_CLASS_LOCAL = 0xff
|
||||
RT_CLASS_MAIN = 0xfe
|
||||
RT_CLASS_MAX = 0xff
|
||||
RT_CLASS_UNSPEC = 0
|
||||
SCM_CREDENTIALS = 0x2
|
||||
SCM_RIGHTS = 0x1
|
||||
SCM_TIMESTAMP = 0x1d
|
||||
|
Loading…
Reference in New Issue
Block a user