summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2011-06-15 16:23:35 +0200
committerThomas Graf <tgraf@suug.ch>2011-06-15 16:23:35 +0200
commitc881908ac7a485512b74bcd583c5890f2ad2af19 (patch)
treee3e3dcce8cfa70f1422a6788da45434bfdafb733
parente56eb065b259069407418d2583ee2ee508bf4d70 (diff)
downloadlibnl-c881908ac7a485512b74bcd583c5890f2ad2af19.tar.gz
neigh: include ndm flags while building message
Reported by jeff courington <jeff_courington@hotmail.com>
-rw-r--r--lib/route/neigh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/route/neigh.c b/lib/route/neigh.c
index 0cd0366..7985d34 100644
--- a/lib/route/neigh.c
+++ b/lib/route/neigh.c
@@ -465,6 +465,9 @@ static int build_neigh_msg(struct rtnl_neigh *tmpl, int cmd, int flags,
nhdr.ndm_family = nl_addr_get_family(tmpl->n_dst);
+ if (tmpl->ce_mask & NEIGH_ATTR_FLAGS)
+ nhdr.ndm_flags = tmpl->n_flags;
+
if (tmpl->ce_mask & NEIGH_ATTR_STATE)
nhdr.ndm_state = tmpl->n_state;