From d5b8311d81719f90a8f8d7f0b85ad320b9d7a0cd Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 29 Apr 2012 23:43:04 +0200 Subject: conntrack: fix new ATTR_GRP_[ORIG|REPL]_ADDR_[SRC|DST] The previous patch was incomplete. This fixes several issues with it like the IPV4 and IPV6 address are mutually exclusive, thus, the getter operation works. No sane way to support the setter operation correctly, thus, it's been documented that it has no effect. Signed-off-by: Pablo Neira Ayuso --- include/internal/bitops.h | 13 +++++++++++++ include/internal/extern.h | 5 ++++- include/internal/internal.h | 3 +++ 3 files changed, 20 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/internal/bitops.h b/include/internal/bitops.h index 0c1fde8..7ae566b 100644 --- a/include/internal/bitops.h +++ b/include/internal/bitops.h @@ -60,4 +60,17 @@ test_bitmask_u32(const uint32_t *buf1, const uint32_t *buf2, int len) return 1; } +static inline int +test_bitmask_u32_or(const uint32_t *buf1, const uint32_t *buf2, int len) +{ + int i; + + for (i=0; i