BUGFIX: We weren't correctly honouring requests to use a Linux bridge. This patch fixes it.

This commit is contained in:
Herbert Wolverson 2024-02-05 11:33:32 -06:00
parent 3ab165a591
commit 7180dd7950

View File

@ -207,6 +207,7 @@ pub fn attach_xdp_and_tc_to_interface(
// Attach to the ingress IF it is configured
if let Ok(etc) = lqos_config::load_config() {
if let Some(bridge) = &etc.bridge {
if bridge.use_xdp_bridge {
// Enable "promiscuous" mode on interfaces
info!("Enabling promiscuous mode on {}", &bridge.to_internet);
std::process::Command::new("/bin/ip")
@ -229,6 +230,7 @@ pub fn attach_xdp_and_tc_to_interface(
return Err(Error::msg("Unable to attach TC Ingress to interface"));
}
}
}
if let Some(stick) = &etc.single_interface {
// Enable "promiscuous" mode on interface