mirror of
https://github.com/opnsense/src.git
synced 2026-04-23 15:19:31 -04:00
vtnet: Do not compare boolean with integer
The type of variable promisc and allmulti was changed from int to bool
by commit [1].
[1] 7dce56596f Convert to if_foreach_llmaddr() KPI
MFC after: 3 days
(cherry picked from commit 80dfed11fc1c61ce9168db01dee263447619e859)
This commit is contained in:
parent
f0d7e7d492
commit
bf2ff4e7ac
1 changed files with 2 additions and 2 deletions
|
|
@ -3828,9 +3828,9 @@ vtnet_rx_filter_mac(struct vtnet_softc *sc)
|
|||
if_printf(ifp, "error setting host MAC filter table\n");
|
||||
|
||||
out:
|
||||
if (promisc != 0 && vtnet_set_promisc(sc, true) != 0)
|
||||
if (promisc && vtnet_set_promisc(sc, true) != 0)
|
||||
if_printf(ifp, "cannot enable promiscuous mode\n");
|
||||
if (allmulti != 0 && vtnet_set_allmulti(sc, true) != 0)
|
||||
if (allmulti && vtnet_set_allmulti(sc, true) != 0)
|
||||
if_printf(ifp, "cannot enable all-multicast mode\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue