fn new_fixed_hdr() -> FixedHeader {
        let mut fixed_hdr = FixedHeader::default();
        NetworkEndian::write_u32(&mut fixed_hdr.version_tc_flowlabel[..], 0x6020_0077);
        NetworkEndian::write_u16(&mut fixed_hdr.payload_len[..], 0);
        fixed_hdr.next_hdr = IpProto::Tcp.into();
        fixed_hdr.hop_limit = 64;
        fixed_hdr.src_ip = DEFAULT_SRC_IP.ipv6_bytes();
        fixed_hdr.dst_ip = DEFAULT_DST_IP.ipv6_bytes();
        fixed_hdr
    }
// Return a new FixedHeader with reasonable defaults.
Return a new FixedHeader with reasonable defaults.
Return a new FixedHeader with reasonable defaults .
fn new_fixed_hdr() -> FixedHeader {
        let mut fixed_hdr = FixedHeader::default();
        NetworkEndian::write_u32(&mut fixed_hdr.version_tc_flowlabel[..], 0x6020_0077);
        NetworkEndian::write_u16(&mut fixed_hdr.payload_len[..], 0);
        fixed_hdr.next_hdr = IpProto::Tcp.into();
        fixed_hdr.hop_limit = 64;
        fixed_hdr.src_ip = DEFAULT_SRC_IP.ipv6_bytes();
        fixed_hdr.dst_ip = DEFAULT_DST_IP.ipv6_bytes();
        fixed_hdr
    }
fn new_fixed_hdr ( ) -> FixedHeader { let mut fixed_hdr = FixedHeader :: default ( ) ; NetworkEndian :: write_u32 ( & mut fixed_hdr . version_tc_flowlabel [ .. ] , 0x6020_0077 ) ; NetworkEndian :: write_u16 ( & mut fixed_hdr . payload_len [ .. ] , 0 ) ; fixed_hdr . next_hdr = IpProto :: Tcp . into ( ) ; fixed_hdr . hop_limit = 64 ; fixed_hdr . src_ip = DEFAULT_SRC_IP . ipv6_bytes ( ) ; fixed_hdr . dst_ip = DEFAULT_DST_IP . ipv6_bytes ( ) ; fixed_hdr }
Return a new FixedHeader with reasonable defaults.
Return a new FixedHeader with reasonable defaults .