lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20231113093429.434186eb@hermes.local> Date: Mon, 13 Nov 2023 09:34:29 -0800 From: Stephen Hemminger <stephen@...workplumber.org> To: Daniel Borkmann <daniel@...earbox.net> Cc: razor@...ckwall.org, martin.lau@...nel.org, netdev@...r.kernel.org Subject: Re: [PATCH iproute2] ip, link: Add support for netkit On Mon, 13 Nov 2023 04:23:23 +0100 Daniel Borkmann <daniel@...earbox.net> wrote: > + if (tb[IFLA_NETKIT_POLICY]) { > + __u32 policy = rta_getattr_u32(tb[IFLA_NETKIT_POLICY]); > + const char *policy_str = > + policy == NETKIT_PASS ? "forward" : > + policy == NETKIT_DROP ? "blackhole" : "unknown"; > + If you plan to add more modes in future, a table or helper would be good idea.
Powered by blists - more mailing lists