File tree Expand file tree Collapse file tree 3 files changed +313
-1
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 3 files changed +313
-1
lines changed Original file line number Diff line number Diff line change @@ -3327,7 +3327,6 @@ fn test_linux(target: &str) {
33273327 "netinet/ip.h" ,
33283328 "netinet/tcp.h" ,
33293329 "netinet/udp.h" ,
3330- "netpacket/packet.h" ,
33313330 "poll.h" ,
33323331 "pthread.h" ,
33333332 "pty.h" ,
@@ -3427,6 +3426,7 @@ fn test_linux(target: &str) {
34273426 "linux/if_addr.h" ,
34283427 "linux/if_alg.h" ,
34293428 "linux/if_ether.h" ,
3429+ "linux/if_packet.h" ,
34303430 "linux/if_tun.h" ,
34313431 "linux/if_xdp.h" ,
34323432 "linux/input.h" ,
@@ -3606,6 +3606,23 @@ fn test_linux(target: &str) {
36063606 if ( gnu && sparc64) && ( ty == "ip_mreqn" || ty == "hwtstamp_config" ) {
36073607 return true ;
36083608 }
3609+ // FIXME: pass by value for structs that are not an even 32/64 bits on
3610+ // big-endian systems corrupts the value for unknown reasons.
3611+ if ( sparc64 || ppc || ppc64 || s390x)
3612+ && ( ty == "sockaddr_pkt"
3613+ || ty == "tpacket_auxdata"
3614+ || ty == "tpacket_hdr_variant1"
3615+ || ty == "tpacket_req3"
3616+ || ty == "tpacket_stats_v3"
3617+ || ty == "tpacket_req_u" )
3618+ {
3619+ return true ;
3620+ }
3621+ // FIXME: musl doesn't compile with `struct fanout_args` for unknown reasons.
3622+ if musl && ty == "fanout_args" {
3623+ return true ;
3624+ }
3625+
36093626 match ty {
36103627 // These cannot be tested when "resolv.h" is included and are tested
36113628 // in the `linux_elf.rs` file.
Original file line number Diff line number Diff line change @@ -1799,11 +1799,38 @@ O_RSYNC
17991799O_SYNC
18001800O_TMPFILE
18011801PACKET_ADD_MEMBERSHIP
1802+ PACKET_AUXDATA
1803+ PACKET_BROADCAST
18021804PACKET_DROP_MEMBERSHIP
1805+ PACKET_FANOUT
1806+ PACKET_FANOUT_CBPF
1807+ PACKET_FANOUT_CPU
1808+ PACKET_FANOUT_FLAG_DEFRAG
1809+ PACKET_FANOUT_FLAG_ROLLOVER
1810+ PACKET_FANOUT_FLAG_UNIQUEID
1811+ PACKET_FANOUT_HASH
1812+ PACKET_FANOUT_LB
1813+ PACKET_FANOUT_QM
1814+ PACKET_FANOUT_RND
1815+ PACKET_FANOUT_ROLLOVER
1816+ PACKET_HOST
1817+ PACKET_KERNEL
1818+ PACKET_LOOPBACK
1819+ PACKET_LOSS
18031820PACKET_MR_ALLMULTI
18041821PACKET_MR_MULTICAST
18051822PACKET_MR_PROMISC
18061823PACKET_MR_UNICAST
1824+ PACKET_MULTICAST
1825+ PACKET_OTHERHOST
1826+ PACKET_OUTGOING
1827+ PACKET_QDISC_BYPASS
1828+ PACKET_RESERVE
1829+ PACKET_RX_RING
1830+ PACKET_STATISTICS
1831+ PACKET_TIMESTAMP
1832+ PACKET_USER
1833+ PACKET_VERSION
18071834PENDIN
18081835PF_ALG
18091836PF_APPLETALK
@@ -3190,6 +3217,22 @@ TLS_GET_RECORD_TYPE
31903217TLS_RX
31913218TLS_SET_RECORD_TYPE
31923219TLS_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
31933236TUN_READQ_SIZE
31943237TUN_TAP_DEV
31953238TUN_TUN_DEV
@@ -3452,6 +3495,7 @@ fanotify_event_metadata
34523495fanotify_init
34533496fanotify_mark
34543497fanotify_response
3498+ fanout_args
34553499fchdir
34563500fdatasync
34573501fdopendir
@@ -3819,6 +3863,7 @@ sockaddr_alg
38193863sockaddr_can
38203864sockaddr_ll
38213865sockaddr_nl
3866+ sockaddr_pkt
38223867sockaddr_vm
38233868splice
38243869spwd
@@ -3853,6 +3898,22 @@ timer_getoverrun
38533898timer_gettime
38543899timer_settime
38553900tmpfile64
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
38563917truncate
38573918truncate64
38583919ttyname_r
You can’t perform that action at this time.
0 commit comments