Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu committed Nov 25, 2024
1 parent 5a45a69 commit 314d4b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net-tools/netwatch/src/netmon/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl RouteMonitor {
RouteNetlinkMessage::NewAddress(msg) => {
trace!("NEWADDR: {:?}", msg);
let addrs = addr_cache.entry(msg.header.index).or_default();
if let Some(addr) = get_nla!(msg, address::Nla::Address) {
if let Some(addr) = get_nla!(msg, address::AddressAttribute::Address) {
if addrs.contains(addr) {
// already cached
continue;
Expand All @@ -97,7 +97,7 @@ impl RouteMonitor {
RouteNetlinkMessage::DelAddress(msg) => {
trace!("DELADDR: {:?}", msg);
let addrs = addr_cache.entry(msg.header.index).or_default();
if let Some(addr) = get_nla!(msg, address::Nla::Address) {
if let Some(addr) = get_nla!(msg, address::AddressAttribute::Address) {
addrs.remove(addr);
}
sender.send(NetworkMessage::Change).await.ok();
Expand All @@ -106,7 +106,7 @@ impl RouteMonitor {
trace!("ROUTE:: {:?}", msg);

// Ignore the following messages
let table = get_nla!(msg, route::Nla::Table)
let table = get_nla!(msg, route::nlas::Nla::Table)
.copied()
.unwrap_or_default();
if let Some(dst) = get_nla!(msg, route::Nla::Destination) {
Expand Down

0 comments on commit 314d4b0

Please sign in to comment.