Skip to content

Commit 771b179

Browse files
committed
Add SOL_XDP to linux musl
1 parent 228941e commit 771b179

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libc-test/semver/linux-musl.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ PF_XDP
2323
PIDFD_NONBLOCK
2424
PR_SET_VMA
2525
PR_SET_VMA_ANON_NAME
26+
SOL_XDP
2627
XDP_SHARED_UMEM
2728
XDP_COPY
2829
XDP_ZEROCOPY

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,8 @@ pub const TIME_ERROR: ::c_int = 5;
780780
pub const TIME_BAD: ::c_int = TIME_ERROR;
781781
pub const MAXTC: ::c_long = 6;
782782

783+
pub const SOL_XDP: ::c_int = 283;
784+
783785
// linux/if_xdp.h
784786
pub const XDP_SHARED_UMEM: ::__u16 = 1 << 0;
785787
pub const XDP_COPY: ::__u16 = 1 << 1;

0 commit comments

Comments
 (0)