Re:Re: [PATCH] uapi/netfilter: Change netfilter hook verdict code definition from macro to enum
From: David Wang
Date: Mon Oct 16 2023 - 05:38:29 EST
At 2023-09-28 19:53:59, "Florian Westphal" <fw@xxxxxxxxx> wrote:
>
>I was about to apply this as-is, but Pablo Neira would prefer to
>keep the defines as well.
>
>So, as a compromise, I would suggest to just *add*
>
>/* verdicts available to BPF are exported via vmlinux.h */
>enum {
> NF_DROP = 0,
> NF_ACCEPT = 1,
>};
>
>#define NF_DROP 0
>...
>
>This way BTF won't have the other verdicts, but ATM those
>cannot be used in BPF programs anyway.
>
>Would you mind making a new version of the patch?
>Otherwise I can mangle it locally here as needed.
Sorry for this late response, I got caught up by an unexpected personal "crisis" for quite a long while..
Hope you have already made the change, and it is OK.
David