summaryrefslogtreecommitdiff
path: root/lib/route/neigh.c
diff options
context:
space:
mode:
authorThomas Graf <tgr@lsx.localdomain>2008-04-29 23:31:30 +0200
committerThomas Graf <tgr@lsx.localdomain>2008-04-29 23:31:30 +0200
commit535e83162249ed6274ba46bc72d8cc683ba20e17 (patch)
treefa3b60b4116668b86d23c11b695ff371d771b997 /lib/route/neigh.c
parent8ac78f1552fa6b6340776513c8a7c36f7b72e498 (diff)
downloadlibnl-535e83162249ed6274ba46bc72d8cc683ba20e17.tar.gz
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/route/neigh.c')
-rw-r--r--lib/route/neigh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/neigh.c b/lib/route/neigh.c
index 6f2f0d3..fa1dc59 100644
--- a/lib/route/neigh.c
+++ b/lib/route/neigh.c
@@ -213,7 +213,7 @@ static int neigh_compare(struct nl_object *_a, struct nl_object *_b,
diff |= NEIGH_DIFF(LLADDR, nl_addr_cmp(a->n_lladdr, b->n_lladdr));
diff |= NEIGH_DIFF(DST, nl_addr_cmp(a->n_dst, b->n_dst));
- if (flags & LOOSE_FLAG_COMPARISON) {
+ if (flags & LOOSE_COMPARISON) {
diff |= NEIGH_DIFF(STATE,
(a->n_state ^ b->n_state) & b->n_state_mask);
diff |= NEIGH_DIFF(FLAGS,