summaryrefslogtreecommitdiffstats
path: root/lib/netfilter
diff options
context:
space:
mode:
authorThomas Graf <tgr@lsx.localdomain>2008-04-29 21:31:30 (GMT)
committerThomas Graf <tgr@lsx.localdomain>2008-04-29 21:31:30 (GMT)
commit535e83162249ed6274ba46bc72d8cc683ba20e17 (patch)
treefa3b60b4116668b86d23c11b695ff371d771b997 /lib/netfilter
parent8ac78f1552fa6b6340776513c8a7c36f7b72e498 (diff)
downloadlibnl-535e83162249ed6274ba46bc72d8cc683ba20e17.zip
libnl-535e83162249ed6274ba46bc72d8cc683ba20e17.tar.gz
libnl-535e83162249ed6274ba46bc72d8cc683ba20e17.tar.bz2
Big routing code rework (API/ABI BREAK!)
Adds all missing routing attributes and brings the routing related code to a working state. In the process the API was broken several times with the justification that nobody is using this code yet. The changes include new example code which is also a prototype for how plain CLI tools could look like to control routes.
Diffstat (limited to 'lib/netfilter')
-rw-r--r--lib/netfilter/ct_obj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/netfilter/ct_obj.c b/lib/netfilter/ct_obj.c
index 0f5a79e..96e5db6 100644
--- a/lib/netfilter/ct_obj.c
+++ b/lib/netfilter/ct_obj.c
@@ -197,7 +197,7 @@ static int ct_compare(struct nl_object *_a, struct nl_object *_b,
#define CT_DIFF(ATTR, EXPR) ATTR_DIFF(attrs, CT_ATTR_##ATTR, a, b, EXPR)
#define CT_DIFF_VAL(ATTR, FIELD) CT_DIFF(ATTR, a->FIELD != b->FIELD)
#define CT_DIFF_ADDR(ATTR, FIELD) \
- ((flags & LOOSE_FLAG_COMPARISON) \
+ ((flags & LOOSE_COMPARISON) \
? CT_DIFF(ATTR, nl_addr_cmp_prefix(a->FIELD, b->FIELD)) \
: CT_DIFF(ATTR, nl_addr_cmp(a->FIELD, b->FIELD)))
@@ -227,7 +227,7 @@ static int ct_compare(struct nl_object *_a, struct nl_object *_b,
diff |= CT_DIFF_VAL(REPL_PACKETS, ct_repl.packets);
diff |= CT_DIFF_VAL(REPL_BYTES, ct_repl.bytes);
- if (flags & LOOSE_FLAG_COMPARISON)
+ if (flags & LOOSE_COMPARISON)
diff |= CT_DIFF(STATUS, (a->ct_status ^ b->ct_status) &
b->ct_status_mask);
else