diff options
author | Hangbin Liu <haliu@redhat.com> | 2018-08-06 22:02:09 +0800 |
---|---|---|
committer | Jiri Pirko <jiri@mellanox.com> | 2018-08-06 16:15:16 +0200 |
commit | acccd780df517b0e5925de4497688b6238bee10c (patch) | |
tree | 63a7db7d098501b64594c306fee9be2235caa697 /include | |
parent | 96674e7d4f4d569c2c961e865cc16152dfab5f09 (diff) | |
download | libndp-acccd780df517b0e5925de4497688b6238bee10c.tar.gz |
ndptool: add -T target support
Currently ndptool can send a Neighbour Solicitation, but does not target
an IP address, so the NS packet doesn't really make sense.
Extend ndptool to target a destination for Neighbour Solicitation.
v2:
1) remove function ipv6_addr_is_multicast()
2) inline some help functions.
3) update code style.
4) rename parameter -d/--dest to -T/--target
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ndp.h b/include/ndp.h index 0dc1468..698bba7 100644 --- a/include/ndp.h +++ b/include/ndp.h @@ -79,6 +79,8 @@ enum ndp_msg_type ndp_msg_type(struct ndp_msg *msg); 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_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); |