diff options
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 0e1b64e..d60c79b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,6 +60,8 @@ fn run(link: String) -> Result<()> { let sock = Socket::new(Domain::IPV6, Type::RAW, Some(Protocol::ICMPV6))?; + sock.bind_device(Some(link.as_bytes()))?; + sock.join_multicast_v6(&Ipv6Addr::new(0xff02, 0, 0, 0, 0, 0, 0, 2), ifi)?; sock.set_multicast_hops_v6(255)?; |