From e9a35fba03ec3670586fba7debd2e0cb3cd4341e Mon Sep 17 00:00:00 2001 From: Hangbin Liu Date: Mon, 2 Sep 2019 19:39:12 +0800 Subject: ndptool: add -D dest support This patch add -D dest option, with this option a user could set the dest address in IPv6 header for solicited NS/NA message For function ndp_msg_addrto_adjust_solicit_multi(), I moved the check in ndp_msg_target_set() instead of in the function itself. I also use reverse christmas tree variable order in the main() function of ndptool.c. Signed-off-by: Hangbin Liu Signed-off-by: Jiri Pirko --- include/ndp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/ndp.h b/include/ndp.h index 698bba7..7bf8794 100644 --- a/include/ndp.h +++ b/include/ndp.h @@ -80,6 +80,7 @@ struct in6_addr *ndp_msg_addrto(struct ndp_msg *msg); uint32_t ndp_msg_ifindex(struct ndp_msg *msg); void ndp_msg_ifindex_set(struct ndp_msg *msg, uint32_t ifindex); void ndp_msg_target_set(struct ndp_msg *msg, struct in6_addr *target); +void ndp_msg_dest_set(struct ndp_msg *msg, struct in6_addr *dest); void ndp_msg_opt_set(struct ndp_msg *msg); int ndp_msg_send(struct ndp *ndp, struct ndp_msg *msg); int ndp_msg_send_with_flags(struct ndp *ndp, struct ndp_msg *msg, uint8_t flags); -- cgit v1.2.1