diff options
author | Thomas Graf <tgraf@suug.ch> | 2011-06-15 16:23:35 +0200 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2011-06-15 16:23:35 +0200 |
commit | c881908ac7a485512b74bcd583c5890f2ad2af19 (patch) | |
tree | e3e3dcce8cfa70f1422a6788da45434bfdafb733 /lib/route | |
parent | e56eb065b259069407418d2583ee2ee508bf4d70 (diff) | |
download | libnl-c881908ac7a485512b74bcd583c5890f2ad2af19.tar.gz |
neigh: include ndm flags while building message
Reported by jeff courington <jeff_courington@hotmail.com>
Diffstat (limited to 'lib/route')
-rw-r--r-- | lib/route/neigh.c | 3 |
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; |