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
1aef43fc
Commit
1aef43fc
authored
6 years ago
by
John Baublitz
Browse files
Options
Downloads
Patches
Plain Diff
Commit for rtnetlink consts
parent
caf17a06
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/unix/notbsd/linux/mod.rs
+37
-0
37 additions, 0 deletions
src/unix/notbsd/linux/mod.rs
src/unix/notbsd/linux/other/mod.rs
+8
-0
8 additions, 0 deletions
src/unix/notbsd/linux/other/mod.rs
with
45 additions
and
0 deletions
src/unix/notbsd/linux/mod.rs
+
37
−
0
View file @
1aef43fc
...
...
@@ -1024,6 +1024,36 @@ pub const IFF_LOWER_UP: ::c_int = 0x10000;
pub
const
IFF_DORMANT
:
::
c_int
=
0x20000
;
pub
const
IFF_ECHO
:
::
c_int
=
0x40000
;
// linux/if_addr.h
pub
const
IFA_UNSPEC
:
::
c_ushort
=
0
;
pub
const
IFA_ADDRESS
:
::
c_ushort
=
1
;
pub
const
IFA_LOCAL
:
::
c_ushort
=
2
;
pub
const
IFA_LABEL
:
::
c_ushort
=
3
;
pub
const
IFA_BROADCAST
:
::
c_ushort
=
4
;
pub
const
IFA_ANYCAST
:
::
c_ushort
=
5
;
pub
const
IFA_CACHEINFO
:
::
c_ushort
=
6
;
pub
const
IFA_MULTICAST
:
::
c_ushort
=
7
;
pub
const
IFA_F_SECONDARY
:
u32
=
0x01
;
pub
const
IFA_F_TEMPORARY
:
u32
=
0x01
;
pub
const
IFA_F_NODAD
:
u32
=
0x02
;
pub
const
IFA_F_OPTIMISTIC
:
u32
=
0x04
;
pub
const
IFA_F_DADFAILED
:
u32
=
0x08
;
pub
const
IFA_F_HOMEADDRESS
:
u32
=
0x10
;
pub
const
IFA_F_DEPRECATED
:
u32
=
0x20
;
pub
const
IFA_F_TENTATIVE
:
u32
=
0x40
;
pub
const
IFA_F_PERMANENT
:
u32
=
0x80
;
// linux/if_link.h
pub
const
IFLA_UNSPEC
:
::
c_ushort
=
0
;
pub
const
IFLA_ADDRESS
:
::
c_ushort
=
1
;
pub
const
IFLA_BROADCAST
:
::
c_ushort
=
2
;
pub
const
IFLA_IFNAME
:
::
c_ushort
=
3
;
pub
const
IFLA_MTU
:
::
c_ushort
=
4
;
pub
const
IFLA_LINK
:
::
c_ushort
=
5
;
pub
const
IFLA_QDISC
:
::
c_ushort
=
6
;
pub
const
IFLA_STATS
:
::
c_ushort
=
7
;
// linux/if_tun.h
pub
const
IFF_TUN
:
::
c_short
=
0x0001
;
pub
const
IFF_TAP
:
::
c_short
=
0x0002
;
...
...
@@ -1767,6 +1797,13 @@ pub const RT_CLASS_MAIN: u8 = 254;
pub
const
RT_CLASS_LOCAL
:
u8
=
255
;
pub
const
RT_CLASS_MAX
:
u8
=
255
;
pub
const
RTM_F_NOTIFY
:
::
c_uint
=
0x100
;
pub
const
RTM_F_CLONED
:
::
c_uint
=
0x200
;
pub
const
RTM_F_EQUALIZE
:
::
c_uint
=
0x400
;
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
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.
src/unix/notbsd/linux/other/mod.rs
+
8
−
0
View file @
1aef43fc
...
...
@@ -601,6 +601,14 @@ pub const LINUX_REBOOT_CMD_RESTART2: ::c_int = 0xA1B2C3D4;
pub
const
LINUX_REBOOT_CMD_SW_SUSPEND
:
::
c_int
=
0xD000FCE2
;
pub
const
LINUX_REBOOT_CMD_KEXEC
:
::
c_int
=
0x45584543
;
// linux/if_addr.h
pub
const
IFA_FLAGS
:
::
c_ushort
=
8
;
pub
const
IFA_F_MANAGETEMPADDR
:
u32
=
0x100
;
pub
const
IFA_F_NOPREFIXROUTE
:
u32
=
0x200
;
pub
const
IFA_F_MCAUTOJOIN
:
u32
=
0x400
;
pub
const
IFA_F_STABLE_PRIVACY
:
u32
=
0x800
;
pub
const
NETLINK_ROUTE
:
::
c_int
=
0
;
pub
const
NETLINK_UNUSED
:
::
c_int
=
1
;
pub
const
NETLINK_USERSOCK
:
::
c_int
=
2
;
...
...
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