summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* ndptool: add -D dest supportHangbin Liu2019-09-161-0/+1
| | | | | | | | | | | | | | 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>
* ndptool: add -T target supportHangbin Liu2018-08-061-0/+2
| | | | | | | | | | | | | | | | 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>
* libndp: revert API change for ndp_msg_send() and add ndp_msg_send_with_flags()Thomas Haller2016-03-101-1/+2
| | | | | | Fixes: cb1ab5fc8b ("libndp: add option flags to send messages") Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com>
* libndp: add option flags to send messagesJamie Bainbridge2016-03-101-1/+12
| | | | | | | | | | | | Within NA and RA message types, there are flags such as Solicited and Override (RFC-4861 Section 4). RA flags are currently implemented but not NA flags, so add remaining NA flag getters/setters. Set Solicited/Override flag on NA when appropriate, add a flags interface to the send API, and implement ability to send Unsolicited NA. Signed-off-by: Jamie Bainbridge <jamie.bainbridge@gmail.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com>
* update copyright datesJiri Pirko2015-04-021-1/+1
| | | | Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* Add missing <stdarg.h> include for va_listYegor Yefremov2014-04-231-0/+1
| | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* add flag getters for prefix optionJiri Pirko2013-06-131-0/+3
| | | | Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* libndp: add ndp_callall_eventfd_handler()Jiri Pirko2013-06-071-0/+1
| | | | Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* add support for DNS Search List (rfc6106)Jiri Pirko2013-04-171-0/+11
| | | | Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* add support for Recursive DNS Server (rfc6106)Jiri Pirko2013-04-121-0/+11
| | | | Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* add support for Default Router Preference in RA msg (rfc4191)Jiri Pirko2013-04-051-0/+3
| | | | Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* add support for Route Information Option (rfc4191)Jiri Pirko2013-04-051-0/+13
| | | | Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* libndp: remove unnecessary evenfd struct and handle all by single event fdJiri Pirko2013-03-291-9/+2
| | | | Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* libndp: change the was opts are handledJiri Pirko2013-03-291-32/+45
| | | | Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* lib: init msg->len accorsding to ND type during init and introduce maxlen getterJiri Pirko2013-03-171-0/+1
| | | | Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* lib: add msg ifindex setterJiri Pirko2013-03-171-0/+1
| | | | Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* lib: add support for sending ND messagesJiri Pirko2013-03-171-0/+1
| | | | Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* lib: do not parse packet right away but do rather for every getterJiri Pirko2013-03-171-0/+2
| | | | | | | | Vice versa for setters. Also store pointer to opts area and use type_infos to set that pointer correctly. Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* initialJiri Pirko2013-03-152-0/+135
Signed-off-by: Jiri Pirko <jiri@resnulli.us>