Skip to content

Commit 56330cd

Browse files
jbaublitztgross35
authored andcommitted
linux: Add new netlink flags
(backport <rust-lang#4288>) (cherry picked from commit 70527d1)
1 parent 14beec8 commit 56330cd

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

libc-test/semver/android.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,8 +1793,11 @@ NLMSG_MIN_TYPE
17931793
NLMSG_NOOP
17941794
NLMSG_OVERRUN
17951795
NLM_F_ACK
1796+
NLM_F_ACK_TLVS
17961797
NLM_F_APPEND
17971798
NLM_F_ATOMIC
1799+
NLM_F_BULK
1800+
NLM_F_CAPPED
17981801
NLM_F_CREATE
17991802
NLM_F_DUMP
18001803
NLM_F_DUMP_FILTERED
@@ -1803,6 +1806,7 @@ NLM_F_ECHO
18031806
NLM_F_EXCL
18041807
NLM_F_MATCH
18051808
NLM_F_MULTI
1809+
NLM_F_NONREC
18061810
NLM_F_REPLACE
18071811
NLM_F_REQUEST
18081812
NLM_F_ROOT

libc-test/semver/linux.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,8 +1996,11 @@ NLMSG_MIN_TYPE
19961996
NLMSG_NOOP
19971997
NLMSG_OVERRUN
19981998
NLM_F_ACK
1999+
NLM_F_ACK_TLVS
19992000
NLM_F_APPEND
20002001
NLM_F_ATOMIC
2002+
NLM_F_BULK
2003+
NLM_F_CAPPED
20012004
NLM_F_CREATE
20022005
NLM_F_DUMP
20032006
NLM_F_DUMP_FILTERED
@@ -2006,6 +2009,7 @@ NLM_F_ECHO
20062009
NLM_F_EXCL
20072010
NLM_F_MATCH
20082011
NLM_F_MULTI
2012+
NLM_F_NONREC
20092013
NLM_F_REPLACE
20102014
NLM_F_REQUEST
20112015
NLM_F_ROOT

src/unix/linux_like/android/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,6 +1985,12 @@ pub const NLM_F_EXCL: c_int = 0x200;
19851985
pub const NLM_F_CREATE: c_int = 0x400;
19861986
pub const NLM_F_APPEND: c_int = 0x800;
19871987

1988+
pub const NLM_F_NONREC: c_int = 0x100;
1989+
pub const NLM_F_BULK: c_int = 0x200;
1990+
1991+
pub const NLM_F_CAPPED: c_int = 0x100;
1992+
pub const NLM_F_ACK_TLVS: c_int = 0x200;
1993+
19881994
pub const NLMSG_NOOP: c_int = 0x1;
19891995
pub const NLMSG_ERROR: c_int = 0x2;
19901996
pub const NLMSG_DONE: c_int = 0x3;

src/unix/linux_like/linux/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4419,6 +4419,12 @@ pub const NLM_F_EXCL: c_int = 0x200;
44194419
pub const NLM_F_CREATE: c_int = 0x400;
44204420
pub const NLM_F_APPEND: c_int = 0x800;
44214421

4422+
pub const NLM_F_NONREC: c_int = 0x100;
4423+
pub const NLM_F_BULK: c_int = 0x200;
4424+
4425+
pub const NLM_F_CAPPED: c_int = 0x100;
4426+
pub const NLM_F_ACK_TLVS: c_int = 0x200;
4427+
44224428
pub const NETLINK_ADD_MEMBERSHIP: c_int = 1;
44234429
pub const NETLINK_DROP_MEMBERSHIP: c_int = 2;
44244430
pub const NETLINK_PKTINFO: c_int = 3;

0 commit comments

Comments
 (0)