Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion uplinkd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ use anyhow::Context;
use anyhow::Result;
use anyhow::anyhow;
use clap::Parser;
use common::illumos::linklocal_add;
use libc::c_int;
use oxnet::IpNet;
use oxnet::Ipv4Net;
Expand Down Expand Up @@ -379,7 +380,14 @@ async fn create_addrobj(
IpNet::V6(v6cidr) if v6cidr.width() == 127 => {
create_v6_ptp_link(iface, v6cidr.addr())
}
addr => create_link(iface, tag, addr).await,
addr => {
if addr.is_ipv6()
&& let Err(e) = linklocal_add(iface, "ll").await
{
error!(log, "failed to create link local for {iface}: {e:?}");
}
create_link(iface, tag, addr).await
}
}
.map(|msg| info!(log, "{msg}"))
.map_err(|e| {
Expand Down