You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to run the test suite I get an error that struct af_alg_iv is not defined.
$ cd libc-test && cargo test
<snip>
cargo:warning=/home/paul/src/libc/target/debug/build/libc-test-3ad7e5dad55ad485/out/main.c: In function ‘__test_fsize_af_alg_iv_iv’:
cargo:warning=/home/paul/src/libc/target/debug/build/libc-test-3ad7e5dad55ad485/out/main.c:25567:34: error: invalid application of ‘sizeof’ to incomplete type ‘__u8[]’ {aka ‘unsigned char[]’}
cargo:warning=25567 | return sizeof(foo->iv);
cargo:warning= | ^
Define `IPPROTO_ETHERNET` on Linux-like platforms.
Define the `IPPROTO_ETHERNET` constant on Linux-like platforms.
This value is also now a registered protocol number IANA, called "Ethernet":
https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
I haven't run all the CI tests locally because my kernel is new too and I hit #3160.
Define additional socket ioctls
Define several socket-related `ioctl`s which aren't currently captured. Updated to include `ioctl`s from BSD systems.
`libc-test` suite has not been run due to #3160.
When attempting to run the test suite I get an error that struct af_alg_iv is not defined.
The offending lines in the test are
which I don't believe can ever work since dereferencing a NULL pointer is undefined behavior.
My /usr/include/linux/if_alg.h defines it as
struct af_alg_iv { __u32 ivlen; __u8 iv[]; };
Compiler explorer shows the same error when trying to implement an equivalent call. Is this a case of main.c not getting generated correctly?
system information:
kernel: v6.2.7'
gcc: 12.2.1
The text was updated successfully, but these errors were encountered: