// TODO(tkilbourn): add IPv6 versions of TCP and UDP parsing
add IPv6 versions of TCP and UDP parsing
add IPv6 versions of TCP and UDP parsing
fn fixed_hdr_to_bytes(fixed_hdr: FixedHeader) -> [u8; IPV6_FIXED_HDR_LEN] {
        let mut bytes = [0; IPV6_FIXED_HDR_LEN];
        {
            let mut lv = LayoutVerified::<_, FixedHeader>::new_unaligned(&mut bytes[..]).unwrap();
            *lv = fixed_hdr;
        }
        bytes
    }
fn fixed_hdr_to_bytes ( fixed_hdr : FixedHeader ) -> [ u8 ; IPV6_FIXED_HDR_LEN ] { let mut bytes = [ 0 ; IPV6_FIXED_HDR_LEN ] ; { let mut lv = LayoutVerified :: < _ , FixedHeader > :: new_unaligned ( & mut bytes [ .. ] ) . unwrap ( ) ; * lv = fixed_hdr ; } bytes }
TODO(tkilbourn): add IPv6 versions of TCP and UDP parsing
TODO ( tkilbourn ) : add IPv6 versions of TCP and UDP parsing
fixed_hdr
FixedHeader