summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHangbin Liu <haliu@redhat.com>2019-09-02 19:39:12 +0800
committerJiri Pirko <jiri@mellanox.com>2019-09-16 08:55:58 +0200
commite9a35fba03ec3670586fba7debd2e0cb3cd4341e (patch)
tree4cd22b920fbc5d045d471ad3b5f98b3f00e91219 /include
parent23490cbf50a9ad62d480a0916c6d0ca61d221afb (diff)
downloadlibndp-e9a35fba03ec3670586fba7debd2e0cb3cd4341e.tar.gz
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 <haliu@redhat.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Diffstat (limited to 'include')
-rw-r--r--include/ndp.h1
1 files changed, 1 insertions, 0 deletions
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);