From: Alban Crequy <hidden> Date: 2012-05-14 13:59:16
With this patch, NFPROTO_* constants don't have the same values as PF_*
constants.
Benefit: it makes NFPROTO_NUMPROTO smaller and saves space as arrays are
smaller.
Issues: might have missed a conversion. I grepped NF_HOOK, nf_register_hook,
nf_register_hooks, and xt_hook_link. So it is probably fine.
NFPROTO_* constants were introduced by commit 7e9c6e.
Signed-off-by: Alban Crequy <redacted>
Reviewed-by: Javier Martinez Canillas <redacted>
Reviewed-by: Vincent Sanders <redacted>
---
include/linux/netfilter.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
This must not be changed under any circumstances. It is exported to
and used by userspace. (Except perhaps for NFPROTO_DECNET, which
refers to a quite dead protocol that I think no user parts have ever
used NFPROTO_DECNET.) I would consider it acceptable to change the
value for NFPROTO_DECNET if Pablo joins.
This must not be changed under any circumstances. It is exported to
and used by userspace. (Except perhaps for NFPROTO_DECNET, which
refers to a quite dead protocol that I think no user parts have ever
used NFPROTO_DECNET.) I would consider it acceptable to change the
value for NFPROTO_DECNET if Pablo joins.
Thanks for the review. I didn't realize it was exported to and used by
userspace. I would drop this patch then.
Alban
This must not be changed under any circumstances. It is exported to
and used by userspace. (Except perhaps for NFPROTO_DECNET, which
refers to a quite dead protocol that I think no user parts have ever
used NFPROTO_DECNET.) I would consider it acceptable to change the
value for NFPROTO_DECNET if Pablo joins.
If there is some remote posibility to break userspace code, I won't
take the patch, sorry.