summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2013-06-13 16:10:50 +0200
committerJiri Pirko <jiri@resnulli.us>2013-06-13 16:12:09 +0200
commit69d1c977b4770e651db6bc498fdca9c3061cef8c (patch)
tree6e6fe8ddb46b9a0e76e7aedef6e1a460ff7c69d5 /utils
parent39e1f53dd4efc00b84ff097b15558747c92593f2 (diff)
downloadlibndp-69d1c977b4770e651db6bc498fdca9c3061cef8c.tar.gz
add flag getters for prefix option
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Diffstat (limited to 'utils')
-rw-r--r--utils/ndptool.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/ndptool.c b/utils/ndptool.c
index 32b641f..d0764ce 100644
--- a/utils/ndptool.c
+++ b/utils/ndptool.c
@@ -257,6 +257,12 @@ static int msgrcv_handler_func(struct ndp *ndp, struct ndp_msg *msg, void *priv)
pr_out("infinity");
else
pr_out("%us", preferred_time);
+ pr_out(", on_link: %s",
+ ndp_msg_opt_prefix_flag_on_link(msg, offset) ? "yes" : "no");
+ pr_out(", autonomous_addr_conf: %s",
+ ndp_msg_opt_prefix_flag_auto_addr_conf(msg, offset) ? "yes" : "no");
+ pr_out(", router_addr: %s",
+ ndp_msg_opt_prefix_flag_router_addr(msg, offset) ? "yes" : "no");
pr_out("\n");
}
ndp_msg_opt_for_each_offset(offset, msg, NDP_MSG_OPT_MTU)