]> granicus.if.org Git - libnl/commitdiff
neigh: include ndm flags while building message
authorThomas Graf <tgraf@suug.ch>
Wed, 15 Jun 2011 14:23:35 +0000 (16:23 +0200)
committerThomas Graf <tgraf@suug.ch>
Wed, 15 Jun 2011 14:23:35 +0000 (16:23 +0200)
Reported by jeff courington <jeff_courington@hotmail.com>

lib/route/neigh.c

index 0cd0366c96d7bb41224589b17f948fed1b07cdf1..7985d348f52c24184f6f902e469eec9026cb0722 100644 (file)
@@ -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;