Skip to content

Commit

Permalink
Also ignore IPv6 interface info
Browse files Browse the repository at this point in the history
Agent now also ignores interfaces listed in ignore_interfaces.rx when
looking for IPv6 interface info. Variables such as
`default:sys.hardware_mac[<INTERFACE>]` will no longer be defined for
ignored interfaces.

Ticket: ENT-11840
Changelog: Commit
Signed-off-by: Lars Erik Wik <[email protected]>
(cherry picked from commit 5ab06a1)
  • Loading branch information
larsewi committed Oct 10, 2024
1 parent e9165a8 commit 4ce032c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libenv/unix_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,11 @@ static void FindV6InterfacesInfo(EvalContext *ctx, Rlist **interfaces, Rlist **h
}
}

if (IgnoreInterface(current_interface))
{
// Ignore interfaces listed in ignore_interfaces.rx
continue;
}

const char *const stripped_ifconfig_line =
TrimWhitespace(ifconfig_line);
Expand Down

0 comments on commit 4ce032c

Please sign in to comment.