Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixmoebius
libc
Commits
81c79c56
Commit
81c79c56
authored
6 years ago
by
John Baublitz
Browse files
Options
Downloads
Patches
Plain Diff
Add RTA_ const values
parent
1aef43fc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/unix/notbsd/linux/mod.rs
+29
-0
29 additions, 0 deletions
src/unix/notbsd/linux/mod.rs
with
29 additions
and
0 deletions
src/unix/notbsd/linux/mod.rs
+
29
−
0
View file @
81c79c56
...
...
@@ -1797,6 +1797,7 @@ pub const RT_CLASS_MAIN: u8 = 254;
pub
const
RT_CLASS_LOCAL
:
u8
=
255
;
pub
const
RT_CLASS_MAX
:
u8
=
255
;
// linux/rtnetlink.h
pub
const
RTM_F_NOTIFY
:
::
c_uint
=
0x100
;
pub
const
RTM_F_CLONED
:
::
c_uint
=
0x200
;
pub
const
RTM_F_EQUALIZE
:
::
c_uint
=
0x400
;
...
...
@@ -1804,6 +1805,34 @@ pub const RTM_F_PREFIX: ::c_uint = 0x800;
pub
const
RTM_F_LOOKUP_TABLE
:
::
c_uint
=
0x1000
;
pub
const
RTM_F_FIB_MATCH
:
::
c_uint
=
0x2000
;
pub
const
RTA_UNSPEC
:
::
c_ushort
=
0
;
pub
const
RTA_DST
:
::
c_ushort
=
1
;
pub
const
RTA_SRC
:
::
c_ushort
=
2
;
pub
const
RTA_IIF
:
::
c_ushort
=
3
;
pub
const
RTA_OIF
:
::
c_ushort
=
4
;
pub
const
RTA_GATEWAY
:
::
c_ushort
=
5
;
pub
const
RTA_PRIORITY
:
::
c_ushort
=
6
;
pub
const
RTA_PREFSRC
:
::
c_ushort
=
7
;
pub
const
RTA_METRICS
:
::
c_ushort
=
8
;
pub
const
RTA_MULTIPATH
:
::
c_ushort
=
9
;
pub
const
RTA_PROTOINFO
:
::
c_ushort
=
10
;
// No longer used
pub
const
RTA_FLOW
:
::
c_ushort
=
11
;
pub
const
RTA_CACHEINFO
:
::
c_ushort
=
12
;
pub
const
RTA_SESSION
:
::
c_ushort
=
13
;
// No longer used
pub
const
RTA_MP_ALGO
:
::
c_ushort
=
14
;
// No longer used
pub
const
RTA_TABLE
:
::
c_ushort
=
15
;
pub
const
RTA_MARK
:
::
c_ushort
=
16
;
pub
const
RTA_MFC_STATS
:
::
c_ushort
=
17
;
pub
const
RTA_VIA
:
::
c_ushort
=
18
;
pub
const
RTA_NEWDST
:
::
c_ushort
=
19
;
pub
const
RTA_PREF
:
::
c_ushort
=
20
;
pub
const
RTA_ENCAP_TYPE
:
::
c_ushort
=
21
;
pub
const
RTA_ENCAP
:
::
c_ushort
=
22
;
pub
const
RTA_EXPIRES
:
::
c_ushort
=
23
;
pub
const
RTA_PAD
:
::
c_ushort
=
24
;
pub
const
RTA_UID
:
::
c_ushort
=
25
;
pub
const
RTA_TTL_PROPAGATE
:
::
c_ushort
=
26
;
pub
const
RTMSG_OVERRUN
:
u32
=
::
NLMSG_OVERRUN
as
u32
;
pub
const
RTMSG_NEWDEVICE
:
u32
=
0x11
;
pub
const
RTMSG_DELDEVICE
:
u32
=
0x12
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment