Skip to content

Commit

Permalink
iface: fix mld test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirbaio committed Nov 28, 2024
1 parent 1027f4f commit c53d175
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/iface/interface/tests/ipv6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1420,15 +1420,12 @@ fn test_handle_valid_multicast_query(#[case] medium: Medium) {

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

let local_ip_addr = Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 101);
let local_ip_addr = Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 1);
let remote_ip_addr = Ipv6Address::new(0xfe80, 0, 0, 0, 0, 0, 0, 100);
let remote_hw_addr = EthernetAddress([0x52, 0x54, 0x00, 0x00, 0x00, 0x00]);
let query_ip_addr = Ipv6Address::new(0xff02, 0, 0, 0, 0, 0, 0, 0x1234);

iface.join_multicast_group(query_ip_addr).unwrap();
iface
.join_multicast_group(local_ip_addr.solicited_node())
.unwrap();

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

0 comments on commit c53d175

Please sign in to comment.