File tree 2 files changed +7
-2
lines changed
src/unix/linux_like/linux 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -4168,6 +4168,8 @@ fn test_linux(target: &str) {
4168
4168
( struct_ == "ifconf" && field == "ifc_ifcu" ) ||
4169
4169
// the `ifr_ifrn` field is an anonymous union
4170
4170
( struct_ == "iwreq" && field == "ifr_ifrn" ) ||
4171
+ // the `key` field is a zero-sized array
4172
+ ( struct_ == "iw_encode_ext" && field == "key" ) ||
4171
4173
// glibc uses a single array `uregs` instead of individual fields.
4172
4174
( struct_ == "user_regs" && arm)
4173
4175
} ) ;
Original file line number Diff line number Diff line change 720
720
}
721
721
722
722
// linux/wireless.h
723
-
723
+
724
724
pub struct iw_param {
725
725
pub value: __s32,
726
726
pub fixed: __u8,
778
778
pub addr: :: sockaddr,
779
779
pub alg: __u16,
780
780
pub key_len: __u16,
781
- pub key: [ __u8; 0 ] ,
781
+ pub key: [ __u8; 0 ] ,
782
782
}
783
783
pub struct iw_mlme {
784
784
pub cmd: __u16,
@@ -3223,6 +3223,9 @@ pub const IWEVASSOCREQIE: ::c_ulong = 0x8C07;
3223
3223
pub const IWEVASSOCRESPIE : :: c_ulong = 0x8C08 ;
3224
3224
pub const IWEVPMKIDCAND : :: c_ulong = 0x8C09 ;
3225
3225
pub const IWEVFIRST : :: c_ulong = 0x8C00 ;
3226
+ pub fn IW_EVENT_IDX ( cmd : :: c_ulong ) -> :: c_ulong {
3227
+ cmd - IWEVFIRST
3228
+ }
3226
3229
3227
3230
pub const IW_PRIV_TYPE_MASK : :: c_ulong = 0x7000 ;
3228
3231
pub const IW_PRIV_TYPE_NONE : :: c_ulong = 0x0000 ;
You can’t perform that action at this time.
0 commit comments