Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
94093205
Commit
94093205
authored
Sep 08, 2011
by
Mikio Hara
Committed by
Russ Cox
Sep 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syscall: add route flags for linux
R=golang-dev CC=golang-dev
https://golang.org/cl/4956069
parent
72dcab1c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
125 additions
and
1 deletion
+125
-1
mkerrors.sh
src/pkg/syscall/mkerrors.sh
+2
-1
zerrors_linux_386.go
src/pkg/syscall/zerrors_linux_386.go
+41
-0
zerrors_linux_amd64.go
src/pkg/syscall/zerrors_linux_amd64.go
+41
-0
zerrors_linux_arm.go
src/pkg/syscall/zerrors_linux_arm.go
+41
-0
No files found.
src/pkg/syscall/mkerrors.sh
View file @
94093205
...
...
@@ -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|RT
M|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)_/ ||
...
...
src/pkg/syscall/zerrors_linux_386.go
View file @
94093205
...
...
@@ -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
...
...
src/pkg/syscall/zerrors_linux_amd64.go
View file @
94093205
...
...
@@ -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
...
...
src/pkg/syscall/zerrors_linux_arm.go
View file @
94093205
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment