-
Notifications
You must be signed in to change notification settings - Fork 1.2k
linux: Add missing SOL_PACKET optnames #4669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Authority: include/uapi/linux/if_packet.h Adds: + PACKET_COPY_THRESH (1da177e4c3f4) + PACKET_FANOUT_DATA (47dceb8ecdc1) + PACKET_FANOUT_FLAG_IGNORE_OUTGOING (58ba426388d9) + PACKET_HDRLEN (bbd6ef87c544) + PACKET_ORIGDEV (80feaacb8a64) + PACKET_RECV_OUTPUT (1da177e4c3f4) + PACKET_ROLLOVER_STATS (a9b6391814d5) + PACKET_TX_HAS_OFF (5920cd3a41f1) + PACKET_TX_TIMESTAMP (ed85b565b825) + PACKET_VNET_HDR (bfd5f4a3d605) + PACKET_VNET_HDR_SZ (dfc39d4026fb) Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=47dceb8ecdc1c3ad1818dfea3d659a05b74c3fc2 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=58ba426388d9fe56aa638f555b01d6e63cada88c Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bbd6ef87c544d88c30e4b762b1b61ef267a7d279 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=80feaacb8a6400a9540a961b6743c69a5896b937 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a9b6391814d5d6b8668fca2dace86949b7244e2e Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5920cd3a41f1aefc30e9ce86384fc2fe9f5fe0c0 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ed85b565b825566da34e55eee9ad150ed93fdda0 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bfd5f4a3d605e0f6054df0b59fe0907ff7e696d3 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dfc39d4026fb2432363c0f77543c4cf3adca4c7b Signed-off-by: Alexandre Girard <github@salnet.wf>
tgross35
approved these changes
Sep 1, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
tgross35
pushed a commit
to tgross35/rust-libc
that referenced
this pull request
Sep 22, 2025
Authority: include/uapi/linux/if_packet.h Adds: + PACKET_COPY_THRESH (1da177e4c3f4) + PACKET_FANOUT_DATA (47dceb8ecdc1) + PACKET_FANOUT_FLAG_IGNORE_OUTGOING (58ba426388d9) + PACKET_HDRLEN (bbd6ef87c544) + PACKET_ORIGDEV (80feaacb8a64) + PACKET_RECV_OUTPUT (1da177e4c3f4) + PACKET_ROLLOVER_STATS (a9b6391814d5) + PACKET_TX_HAS_OFF (5920cd3a41f1) + PACKET_TX_TIMESTAMP (ed85b565b825) + PACKET_VNET_HDR (bfd5f4a3d605) + PACKET_VNET_HDR_SZ (dfc39d4026fb) Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=47dceb8ecdc1c3ad1818dfea3d659a05b74c3fc2 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=58ba426388d9fe56aa638f555b01d6e63cada88c Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bbd6ef87c544d88c30e4b762b1b61ef267a7d279 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=80feaacb8a6400a9540a961b6743c69a5896b937 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a9b6391814d5d6b8668fca2dace86949b7244e2e Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5920cd3a41f1aefc30e9ce86384fc2fe9f5fe0c0 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ed85b565b825566da34e55eee9ad150ed93fdda0 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bfd5f4a3d605e0f6054df0b59fe0907ff7e696d3 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dfc39d4026fb2432363c0f77543c4cf3adca4c7b Signed-off-by: Alexandre Girard <github@salnet.wf> (backport <rust-lang#4669>) (cherry picked from commit 584b91e) Signed-off-by: Trevor Gross <tmgross@umich.edu>
tgross35
pushed a commit
to tgross35/rust-libc
that referenced
this pull request
Sep 22, 2025
Authority: include/uapi/linux/if_packet.h Adds: + PACKET_COPY_THRESH (1da177e4c3f4) + PACKET_FANOUT_DATA (47dceb8ecdc1) + PACKET_FANOUT_FLAG_IGNORE_OUTGOING (58ba426388d9) + PACKET_HDRLEN (bbd6ef87c544) + PACKET_ORIGDEV (80feaacb8a64) + PACKET_RECV_OUTPUT (1da177e4c3f4) + PACKET_ROLLOVER_STATS (a9b6391814d5) + PACKET_TX_HAS_OFF (5920cd3a41f1) + PACKET_TX_TIMESTAMP (ed85b565b825) + PACKET_VNET_HDR (bfd5f4a3d605) + PACKET_VNET_HDR_SZ (dfc39d4026fb) Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=47dceb8ecdc1c3ad1818dfea3d659a05b74c3fc2 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=58ba426388d9fe56aa638f555b01d6e63cada88c Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bbd6ef87c544d88c30e4b762b1b61ef267a7d279 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=80feaacb8a6400a9540a961b6743c69a5896b937 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a9b6391814d5d6b8668fca2dace86949b7244e2e Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5920cd3a41f1aefc30e9ce86384fc2fe9f5fe0c0 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ed85b565b825566da34e55eee9ad150ed93fdda0 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bfd5f4a3d605e0f6054df0b59fe0907ff7e696d3 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dfc39d4026fb2432363c0f77543c4cf3adca4c7b Signed-off-by: Alexandre Girard <github@salnet.wf> (backport <rust-lang#4669>) (cherry picked from commit 584b91e) Signed-off-by: Trevor Gross <tmgross@umich.edu>
tgross35
pushed a commit
to tgross35/rust-libc
that referenced
this pull request
Sep 22, 2025
Authority: include/uapi/linux/if_packet.h Adds: + PACKET_COPY_THRESH (1da177e4c3f4) + PACKET_FANOUT_DATA (47dceb8ecdc1) + PACKET_FANOUT_FLAG_IGNORE_OUTGOING (58ba426388d9) + PACKET_HDRLEN (bbd6ef87c544) + PACKET_ORIGDEV (80feaacb8a64) + PACKET_RECV_OUTPUT (1da177e4c3f4) + PACKET_ROLLOVER_STATS (a9b6391814d5) + PACKET_TX_HAS_OFF (5920cd3a41f1) + PACKET_TX_TIMESTAMP (ed85b565b825) + PACKET_VNET_HDR (bfd5f4a3d605) + PACKET_VNET_HDR_SZ (dfc39d4026fb) Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=47dceb8ecdc1c3ad1818dfea3d659a05b74c3fc2 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=58ba426388d9fe56aa638f555b01d6e63cada88c Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bbd6ef87c544d88c30e4b762b1b61ef267a7d279 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=80feaacb8a6400a9540a961b6743c69a5896b937 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a9b6391814d5d6b8668fca2dace86949b7244e2e Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5920cd3a41f1aefc30e9ce86384fc2fe9f5fe0c0 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ed85b565b825566da34e55eee9ad150ed93fdda0 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bfd5f4a3d605e0f6054df0b59fe0907ff7e696d3 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dfc39d4026fb2432363c0f77543c4cf3adca4c7b Signed-off-by: Alexandre Girard <github@salnet.wf> (backport <rust-lang#4669>) (cherry picked from commit 584b91e) Signed-off-by: Trevor Gross <tmgross@umich.edu>
Merged
github-merge-queue bot
pushed a commit
that referenced
this pull request
Sep 22, 2025
Authority: include/uapi/linux/if_packet.h Adds: + PACKET_COPY_THRESH (1da177e4c3f4) + PACKET_FANOUT_DATA (47dceb8ecdc1) + PACKET_FANOUT_FLAG_IGNORE_OUTGOING (58ba426388d9) + PACKET_HDRLEN (bbd6ef87c544) + PACKET_ORIGDEV (80feaacb8a64) + PACKET_RECV_OUTPUT (1da177e4c3f4) + PACKET_ROLLOVER_STATS (a9b6391814d5) + PACKET_TX_HAS_OFF (5920cd3a41f1) + PACKET_TX_TIMESTAMP (ed85b565b825) + PACKET_VNET_HDR (bfd5f4a3d605) + PACKET_VNET_HDR_SZ (dfc39d4026fb) Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=47dceb8ecdc1c3ad1818dfea3d659a05b74c3fc2 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=58ba426388d9fe56aa638f555b01d6e63cada88c Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bbd6ef87c544d88c30e4b762b1b61ef267a7d279 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=80feaacb8a6400a9540a961b6743c69a5896b937 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a9b6391814d5d6b8668fca2dace86949b7244e2e Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5920cd3a41f1aefc30e9ce86384fc2fe9f5fe0c0 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ed85b565b825566da34e55eee9ad150ed93fdda0 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bfd5f4a3d605e0f6054df0b59fe0907ff7e696d3 Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dfc39d4026fb2432363c0f77543c4cf3adca4c7b Signed-off-by: Alexandre Girard <github@salnet.wf> (backport <#4669>) (cherry picked from commit 584b91e) Signed-off-by: Trevor Gross <tmgross@umich.edu>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
O-linux
O-unix
stable-nominated
This PR should be considered for cherry-pick to libc's stable release branch
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds missing
SOL_PACKET
socket options constants (optname
) forAF_PACKET
sockets, as defined in <linux/if_packet.h>.Sources
PACKET_COPY_THRESH
(1da177e4c3f4)PACKET_FANOUT_DATA
(47dceb8ecdc1)PACKET_FANOUT_FLAG_IGNORE_OUTGOING
(58ba426388d9)PACKET_HDRLEN
(bbd6ef87c544)PACKET_ORIGDEV
(80feaacb8a64)PACKET_RECV_OUTPUT
(1da177e4c3f4)PACKET_ROLLOVER_STATS
(a9b6391814d5)PACKET_TX_HAS_OFF
(5920cd3a41f1)PACKET_TX_TIMESTAMP
(ed85b565b825)PACKET_VNET_HDR
(bfd5f4a3d605)PACKET_VNET_HDR_SZ
(dfc39d4026fb)Checklist
libc-test/semver
have been updated*LAST
or*MAX
areincluded (see #3131)
cd libc-test && cargo test --target mytarget
);especially relevant for platforms that may not be checked in CI