| ... | ... | @@ -1709,31 +1709,31 @@ pub const termios = extern struct { |
| 1709 | 1709 | pub const SIOCGIFINDEX = 0x8933; |
| 1710 | 1710 | pub const IFNAMESIZE = 16; |
| 1711 | 1711 | |
| 1712 | | pub const ifmap = struct { |
| 1713 | | mem_start: u32, |
| 1714 | | mem_end: u32, |
| 1715 | | base_addr: i16, |
| 1712 | pub const ifmap = extern struct { |
| 1713 | mem_start: c_ulong, |
| 1714 | mem_end: c_ulong, |
| 1715 | base_addr: c_ushort, |
| 1716 | 1716 | irq: u8, |
| 1717 | 1717 | dma: u8, |
| 1718 | 1718 | port: u8, |
| 1719 | 1719 | }; |
| 1720 | 1720 | |
| 1721 | | pub const ifreq = extern union { |
| 1722 | | ifr_ifrn: struct { |
| 1721 | pub const ifreq = extern struct { |
| 1722 | ifr_ifrn: extern union { |
| 1723 | 1723 | name: [IFNAMESIZE]u8, |
| 1724 | 1724 | }, |
| 1725 | | ifr_ifru: struct { |
| 1725 | ifr_ifru: extern union { |
| 1726 | 1726 | ifru_addr: sockaddr, |
| 1727 | 1727 | ifru_dstaddr: sockaddr, |
| 1728 | 1728 | ifru_broadaddr: sockaddr, |
| 1729 | 1729 | ifru_netmask: sockaddr, |
| 1730 | 1730 | ifru_hwaddr: sockaddr, |
| 1731 | | ifru_flags: i16, |
| 1731 | ifru_flags: c_short, |
| 1732 | 1732 | ifru_ivalue: i32, |
| 1733 | 1733 | ifru_mtu: i32, |
| 1734 | 1734 | ifru_map: ifmap, |
| 1735 | 1735 | ifru_slave: [IFNAMESIZE]u8, |
| 1736 | 1736 | ifru_newname: [IFNAMESIZE]u8, |
| 1737 | | ifru_data: [*:0]u8, |
| 1737 | ifru_data: [*c]u8, |
| 1738 | 1738 | }, |
| 1739 | 1739 | }; |