1 // Licensed under the Apache License, Version 2.0 2 // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license 3 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option. 4 // All files in the project carrying such notice may not be copied, modified, or distributed 5 // except according to those terms. 6 //! IPv6 Internet address, 'on-wire' format structure. 7 use shared::minwindef::{UCHAR, USHORT}; 8 UNION!{union in6_addr_u { 9 [u16; 8], 10 Byte Byte_mut: [UCHAR; 16], 11 Word Word_mut: [USHORT; 8], 12 }} 13 STRUCT!{struct in6_addr { 14 u: in6_addr_u, 15 }} 16 pub type IN6_ADDR = in6_addr; 17 pub type PIN6_ADDR = *mut IN6_ADDR; 18 pub type LPIN6_ADDR = *mut IN6_ADDR; 19