Skip to content

Commit 0385bad

Browse files
committed
iface: fix mld test.
1 parent e9bf78c commit 0385bad

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/iface/interface/tests/ipv6.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,15 +1420,12 @@ fn test_handle_valid_multicast_query(#[case] medium: Medium) {
14201420

14211421
let mut eth_bytes = vec![0u8; 86];
14221422

1423-
let local_ip_addr = Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 101);
1423+
let local_ip_addr = Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 1);
14241424
let remote_ip_addr = Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 100);
14251425
let remote_hw_addr = EthernetAddress([0x52, 0x54, 0x00, 0x00, 0x00, 0x00]);
14261426
let query_ip_addr = Ipv6Address::new(0xff02, 0, 0, 0, 0, 0, 0, 0x1234);
14271427

14281428
iface.join_multicast_group(query_ip_addr).unwrap();
1429-
iface
1430-
.join_multicast_group(local_ip_addr.solicited_node())
1431-
.unwrap();
14321429

14331430
iface.poll(timestamp, &mut device, &mut sockets);
14341431
// flush multicast reports from the join_multicast_group calls
@@ -1439,7 +1436,7 @@ fn test_handle_valid_multicast_query(#[case] medium: Medium) {
14391436
(
14401437
Ipv6Address::UNSPECIFIED,
14411438
IPV6_LINK_LOCAL_ALL_NODES,
1442-
vec![query_ip_addr, local_ip_addr.solicited_node()],
1439+
vec![local_ip_addr.solicited_node(), query_ip_addr],
14431440
),
14441441
// Address specific query, expect only the queried address back
14451442
(query_ip_addr, query_ip_addr, vec![query_ip_addr]),

0 commit comments

Comments
 (0)