Searched refs:set_version (Results 1 – 3 of 3) sorted by relevance
566 pub fn set_version(&mut self, value: u8) { in set_version() method699 packet.set_version(6); in emit()1117 packet.set_version(6); in test_packet_construction()1181 packet.set_version(4); in test_repr_parse_bad_version()1191 packet.set_version(6); in test_repr_parse_smaller_than_header()1201 packet.set_version(6); in test_repr_parse_smaller_than_payload()
485 pub fn set_version(&mut self, value: u8) { in set_version() method677 packet.set_version(4); in emit()833 packet.set_version(4); in test_construct()906 packet.set_version(6); in test_parse_bad_version()
615 Ipv4Packet::new_unchecked(&mut wrong_version).set_version(6); in test_send_illegal()638 Ipv6Packet::new_unchecked(&mut wrong_version[..]).set_version(4); in test_send_illegal()