|
@@ -49,7 +49,7 @@ fn multicast_source_address(#[case] medium: Medium) {
|
|
|
iface.inner.process_ipv6(
|
|
|
&mut sockets,
|
|
|
PacketMeta::default(),
|
|
|
- &Ipv6PacketWire::new_checked(&data).unwrap()
|
|
|
+ &Ipv6PacketWire::new_checked(&data[..]).unwrap()
|
|
|
),
|
|
|
response
|
|
|
);
|
|
@@ -97,7 +97,7 @@ fn hop_by_hop_skip_with_icmp(#[case] medium: Medium) {
|
|
|
iface.inner.process_ipv6(
|
|
|
&mut sockets,
|
|
|
PacketMeta::default(),
|
|
|
- &Ipv6PacketWire::new_checked(&data).unwrap()
|
|
|
+ &Ipv6PacketWire::new_checked(&data[..]).unwrap()
|
|
|
),
|
|
|
response
|
|
|
);
|
|
@@ -132,7 +132,7 @@ fn hop_by_hop_discard_with_icmp(#[case] medium: Medium) {
|
|
|
iface.inner.process_ipv6(
|
|
|
&mut sockets,
|
|
|
PacketMeta::default(),
|
|
|
- &Ipv6PacketWire::new_checked(&data).unwrap()
|
|
|
+ &Ipv6PacketWire::new_checked(&data[..]).unwrap()
|
|
|
),
|
|
|
response
|
|
|
);
|
|
@@ -191,7 +191,7 @@ fn imcp_empty_echo_request(#[case] medium: Medium) {
|
|
|
iface.inner.process_ipv6(
|
|
|
&mut sockets,
|
|
|
PacketMeta::default(),
|
|
|
- &Ipv6PacketWire::new_checked(&data).unwrap()
|
|
|
+ &Ipv6PacketWire::new_checked(&data[..]).unwrap()
|
|
|
),
|
|
|
response
|
|
|
);
|
|
@@ -251,7 +251,7 @@ fn icmp_echo_request(#[case] medium: Medium) {
|
|
|
iface.inner.process_ipv6(
|
|
|
&mut sockets,
|
|
|
PacketMeta::default(),
|
|
|
- &Ipv6PacketWire::new_checked(&data).unwrap()
|
|
|
+ &Ipv6PacketWire::new_checked(&data[..]).unwrap()
|
|
|
),
|
|
|
response
|
|
|
);
|
|
@@ -298,7 +298,7 @@ fn icmp_echo_reply_as_input(#[case] medium: Medium) {
|
|
|
iface.inner.process_ipv6(
|
|
|
&mut sockets,
|
|
|
PacketMeta::default(),
|
|
|
- &Ipv6PacketWire::new_checked(&data).unwrap()
|
|
|
+ &Ipv6PacketWire::new_checked(&data[..]).unwrap()
|
|
|
),
|
|
|
response
|
|
|
);
|
|
@@ -327,7 +327,7 @@ fn unknown_proto_with_multicast_dst_address(#[case] medium: Medium) {
|
|
|
iface.inner.process_ipv6(
|
|
|
&mut sockets,
|
|
|
PacketMeta::default(),
|
|
|
- &Ipv6PacketWire::new_checked(&data).unwrap()
|
|
|
+ &Ipv6PacketWire::new_checked(&data[..]).unwrap()
|
|
|
),
|
|
|
response
|
|
|
);
|
|
@@ -376,7 +376,7 @@ fn unknown_proto(#[case] medium: Medium) {
|
|
|
iface.inner.process_ipv6(
|
|
|
&mut sockets,
|
|
|
PacketMeta::default(),
|
|
|
- &Ipv6PacketWire::new_checked(&data).unwrap()
|
|
|
+ &Ipv6PacketWire::new_checked(&data[..]).unwrap()
|
|
|
),
|
|
|
response
|
|
|
);
|
|
@@ -420,7 +420,7 @@ fn ndsic_neighbor_advertisement_ethernet(#[case] medium: Medium) {
|
|
|
iface.inner.process_ipv6(
|
|
|
&mut sockets,
|
|
|
PacketMeta::default(),
|
|
|
- &Ipv6PacketWire::new_checked(&data).unwrap()
|
|
|
+ &Ipv6PacketWire::new_checked(&data[..]).unwrap()
|
|
|
),
|
|
|
response
|
|
|
);
|
|
@@ -476,7 +476,7 @@ fn ndsic_neighbor_advertisement_ethernet_multicast_addr(#[case] medium: Medium)
|
|
|
iface.inner.process_ipv6(
|
|
|
&mut sockets,
|
|
|
PacketMeta::default(),
|
|
|
- &Ipv6PacketWire::new_checked(&data).unwrap()
|
|
|
+ &Ipv6PacketWire::new_checked(&data[..]).unwrap()
|
|
|
),
|
|
|
response
|
|
|
);
|
|
@@ -528,7 +528,7 @@ fn ndsic_neighbor_advertisement_ieee802154(#[case] medium: Medium) {
|
|
|
iface.inner.process_ipv6(
|
|
|
&mut sockets,
|
|
|
PacketMeta::default(),
|
|
|
- &Ipv6PacketWire::new_checked(&data).unwrap()
|
|
|
+ &Ipv6PacketWire::new_checked(&data[..]).unwrap()
|
|
|
),
|
|
|
response
|
|
|
);
|