File tree 3 files changed +321
-1
lines changed
src/unix/linux_like/linux
3 files changed +321
-1
lines changed Original file line number Diff line number Diff line change @@ -3384,7 +3384,6 @@ fn test_linux(target: &str) {
3384
3384
"netinet/ip.h" ,
3385
3385
"netinet/tcp.h" ,
3386
3386
"netinet/udp.h" ,
3387
- "netpacket/packet.h" ,
3388
3387
"poll.h" ,
3389
3388
"pthread.h" ,
3390
3389
"pty.h" ,
@@ -3486,6 +3485,7 @@ fn test_linux(target: &str) {
3486
3485
"linux/if_addr.h" ,
3487
3486
"linux/if_alg.h" ,
3488
3487
"linux/if_ether.h" ,
3488
+ "linux/if_packet.h" ,
3489
3489
"linux/if_tun.h" ,
3490
3490
"linux/if_xdp.h" ,
3491
3491
"linux/input.h" ,
@@ -3666,6 +3666,23 @@ fn test_linux(target: &str) {
3666
3666
if ( gnu && sparc64) && ( ty == "ip_mreqn" || ty == "hwtstamp_config" ) {
3667
3667
return true ;
3668
3668
}
3669
+ // FIXME: pass by value for structs that are not an even 32/64 bits on
3670
+ // big-endian systems corrupts the value for unknown reasons.
3671
+ if ( sparc64 || ppc || ppc64 || s390x)
3672
+ && ( ty == "sockaddr_pkt"
3673
+ || ty == "tpacket_auxdata"
3674
+ || ty == "tpacket_hdr_variant1"
3675
+ || ty == "tpacket_req3"
3676
+ || ty == "tpacket_stats_v3"
3677
+ || ty == "tpacket_req_u" )
3678
+ {
3679
+ return true ;
3680
+ }
3681
+ // FIXME: musl doesn't compile with `struct fanout_args` for unknown reasons.
3682
+ if musl && ty == "fanout_args" {
3683
+ return true ;
3684
+ }
3685
+
3669
3686
match ty {
3670
3687
// These cannot be tested when "resolv.h" is included and are tested
3671
3688
// in the `linux_elf.rs` file.
Original file line number Diff line number Diff line change @@ -1801,11 +1801,38 @@ O_RSYNC
1801
1801
O_SYNC
1802
1802
O_TMPFILE
1803
1803
PACKET_ADD_MEMBERSHIP
1804
+ PACKET_AUXDATA
1805
+ PACKET_BROADCAST
1804
1806
PACKET_DROP_MEMBERSHIP
1807
+ PACKET_FANOUT
1808
+ PACKET_FANOUT_CBPF
1809
+ PACKET_FANOUT_CPU
1810
+ PACKET_FANOUT_FLAG_DEFRAG
1811
+ PACKET_FANOUT_FLAG_ROLLOVER
1812
+ PACKET_FANOUT_FLAG_UNIQUEID
1813
+ PACKET_FANOUT_HASH
1814
+ PACKET_FANOUT_LB
1815
+ PACKET_FANOUT_QM
1816
+ PACKET_FANOUT_RND
1817
+ PACKET_FANOUT_ROLLOVER
1818
+ PACKET_HOST
1819
+ PACKET_KERNEL
1820
+ PACKET_LOOPBACK
1821
+ PACKET_LOSS
1805
1822
PACKET_MR_ALLMULTI
1806
1823
PACKET_MR_MULTICAST
1807
1824
PACKET_MR_PROMISC
1808
1825
PACKET_MR_UNICAST
1826
+ PACKET_MULTICAST
1827
+ PACKET_OTHERHOST
1828
+ PACKET_OUTGOING
1829
+ PACKET_QDISC_BYPASS
1830
+ PACKET_RESERVE
1831
+ PACKET_RX_RING
1832
+ PACKET_STATISTICS
1833
+ PACKET_TIMESTAMP
1834
+ PACKET_USER
1835
+ PACKET_VERSION
1809
1836
PENDIN
1810
1837
PF_ALG
1811
1838
PF_APPLETALK
@@ -3190,6 +3217,22 @@ TLS_GET_RECORD_TYPE
3190
3217
TLS_RX
3191
3218
TLS_SET_RECORD_TYPE
3192
3219
TLS_TX
3220
+ TP_STATUS_AVAILABLE
3221
+ TP_STATUS_BLK_TMO
3222
+ TP_STATUS_COPY
3223
+ TP_STATUS_CSUMNOTREADY
3224
+ TP_STATUS_CSUM_VALID
3225
+ TP_STATUS_KERNEL
3226
+ TP_STATUS_LOSING
3227
+ TP_STATUS_SENDING
3228
+ TP_STATUS_SEND_REQUEST
3229
+ TP_STATUS_TS_RAW_HARDWARE
3230
+ TP_STATUS_TS_SOFTWARE
3231
+ TP_STATUS_TS_SYS_HARDWARE
3232
+ TP_STATUS_USER
3233
+ TP_STATUS_VLAN_TPID_VALID
3234
+ TP_STATUS_VLAN_VALID
3235
+ TP_STATUS_WRONG_FORMAT
3193
3236
TUN_READQ_SIZE
3194
3237
TUN_TAP_DEV
3195
3238
TUN_TUN_DEV
@@ -3452,6 +3495,7 @@ fanotify_event_metadata
3452
3495
fanotify_init
3453
3496
fanotify_mark
3454
3497
fanotify_response
3498
+ fanout_args
3455
3499
fchdir
3456
3500
fdatasync
3457
3501
fdopendir
@@ -3819,6 +3863,7 @@ sockaddr_alg
3819
3863
sockaddr_can
3820
3864
sockaddr_ll
3821
3865
sockaddr_nl
3866
+ sockaddr_pkt
3822
3867
sockaddr_vm
3823
3868
splice
3824
3869
spwd
@@ -3853,6 +3898,22 @@ timer_getoverrun
3853
3898
timer_gettime
3854
3899
timer_settime
3855
3900
tmpfile64
3901
+ tpacket2_hdr
3902
+ tpacket3_hdr
3903
+ tpacket_auxdata
3904
+ tpacket_bd_header_u
3905
+ tpacket_bd_ts
3906
+ tpacket_block_desc
3907
+ tpacket_hdr
3908
+ tpacket_hdr_v1
3909
+ tpacket_hdr_variant1
3910
+ tpacket_req
3911
+ tpacket_req3
3912
+ tpacket_req_u
3913
+ tpacket_rollover_stats
3914
+ tpacket_stats
3915
+ tpacket_stats_v3
3916
+ tpacket_versions
3856
3917
truncate
3857
3918
truncate64
3858
3919
ttyname_r
You can’t perform that action at this time.
0 commit comments