7c15db6f | 19-Feb-2025 |
William A. Kennington III <wak@google.com> |
ncsid: Use PACKET_MR_PROMISC
Using IFF_PROMISC is dangerous because it requires us to set the IF flag. The if flags cannot be set atomically, and they are expected to be owned and managed by systemd
ncsid: Use PACKET_MR_PROMISC
Using IFF_PROMISC is dangerous because it requires us to set the IF flag. The if flags cannot be set atomically, and they are expected to be owned and managed by systemd-networkd. NCSId will sometimes race with systemd-networkd and discard the IFF_UP flag and prevent the interface from coming up during boot.
PACKET_MR_PROMISC does not depend on the flags and will not conflict with other processes using the interface.
Change-Id: I4c193e73bff789e079e859d2b98c2477b2956d54 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
47a0ada2 | 29-Nov-2023 |
Patrick Williams <patrick@stwcx.xyz> |
build: use allowed over enabled
Meson feature options are typically in a tri-state of enabled, disabled, or auto. The enabled and disabled functions on an option (from `get_option`) no longer retur
build: use allowed over enabled
Meson feature options are typically in a tri-state of enabled, disabled, or auto. The enabled and disabled functions on an option (from `get_option`) no longer return true for auto features. Instead, the expectation is to use `allowed()` which is true for both enabled and auto.
Switch all uses of `enabled` to `allowed`.
Change-Id: I91fe34f9d6743a3afeef73c3e55847542cea143c Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|