From: Thomas Graf Date: Wed, 15 Jun 2011 14:23:35 +0000 (+0200) Subject: neigh: include ndm flags while building message X-Git-Tag: libnl3_1~26^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c881908ac7a485512b74bcd583c5890f2ad2af19;p=thirdparty%2Flibnl.git neigh: include ndm flags while building message Reported by jeff courington --- 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;