adding ethhdr type for linux/android for proper packet filtering.#4239
adding ethhdr type for linux/android for proper packet filtering.#4239tgross35 merged 1 commit intorust-lang:mainfrom
Conversation
|
Some changes occurred in the Android module cc @maurer |
55f537d to
d478bbb
Compare
da428da to
4f428e0
Compare
maurer
left a comment
There was a problem hiding this comment.
The main thing I see missing here is a use of ethhdr. A struct type with no usage by libc might not actually belong here, even though it is on the UAPI interface - this is a bindings crate for libc, not for the Linux kernel.
Is there a function in libc that you intend to call that uses the ethhdr struct? If so, layering on a commit binding that on top of this one would make a better PR IMO.
src/unix/linux_like/android/mod.rs
Outdated
|
|
||
| // linux/if_ether.h | ||
|
|
||
| #[repr(C, align(1))] |
There was a problem hiding this comment.
I know. was trying to solve few architectures build failures.
There is, for packet filters purpose. sendto/recvfrom can use any buffer e.g. ethhdr for this case. since AF_PACKET family and ETH_P* constants are already there, I m just trying to finish it off. |
9bb6cb5 to
a8ed135
Compare
930a40c to
9944b71
Compare
|
Since this is marked as a draft: @rustbot author (just update the labels if that isn't accurate) |
1fa2062 to
f92ae26
Compare
This comment has been minimized.
This comment has been minimized.
f69471d to
0019422
Compare
|
@rustbot ready |
6fc575c to
94f06b3
Compare
tgross35
left a comment
There was a problem hiding this comment.
Thanks for removing it. LGTM with a squash
74d9704 to
768cdd3
Compare
This comment has been minimized.
This comment has been minimized.
|
Sorry, guess I didn't see this was ready. Needs a rebase now @rustbot author |
|
Reminder, once the PR becomes ready for a review, use |
|
Some changes occurred in an Android module cc @maurer |
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@rustbot ready |
No description provided.