commit 5c348445478b0b022a4276eff1d625224f2dd32c
Author: Jiri Pirko <jiri@resnulli.us> Date: Thu Apr 2 12:32:06 2015 +0200 1.5 release Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 0fedd1b44810c33fbcfe1fe7f976198bae247bf2 Author: Jiri Pirko <jiri@resnulli.us> Date: Thu Apr 2 12:31:28 2015 +0200 update copyright dates Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit a285123e82ca0ff5819f8eed55b7ad6aac25d00f Author: Andrew Ayer <agwa@andrewayer.name> Date: Tue Jul 8 16:58:30 2014 -0700 ndptool: use conventional signal handlers instead of signalfd signalfd() is Linux-specific. Using conventional signal handlers will allow ndptool to compile on non-Linux systems and old versions of Linux. Signed-off-by: Andrew Ayer <agwa@andrewayer.name> Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit f3a3a63d5b5abced8f75731d7b995606933c6e33 Author: Jiri Pirko <jiri@resnulli.us> Date: Tue Jul 29 15:18:07 2014 +0200 1.4 release Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit e93d565950129a31ac1141b6589afc4e35d1cde3 Author: Andrew Ayer <agwa@andrewayer.name> Date: Wed Jul 9 13:23:02 2014 -0700 libndp: fix buffer overflow in ndp_msg_opt_dnssl_domain() The buf array would overflow when processing a malformed DNSSL option containing a domain name whose labels' combined length exceeded 255 bytes. To facilitate the bounds checking, the code has been restructured slightly to be simpler and avoid repeated calls to strlen and strcat. Signed-off-by: Andrew Ayer <agwa@andrewayer.name> Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit d438bc9c4c01b12f3a50d869f87565b6e3f17531 Author: Jiri Pirko <jiri@resnulli.us> Date: Thu Jun 26 11:12:02 2014 +0200 1.3 release Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit f2a888cf387c39ca22ae6c78ee0f4d7033cf432c Author: Yegor Yefremov <yegorslists@googlemail.com> Date: Sat Mar 29 15:02:30 2014 +0100 Add missing <stdarg.h> include for va_list 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> commit 4376e752c822444f1a26b5e1e974ddd7104ae15c Author: Jiri Pirko <jiri@resnulli.us> Date: Wed Dec 18 13:26:49 2013 +0100 libndp: fix [cppcheck] Undefined behavior: Variable 'buf' is used as parameter and destination in s[n]printf() cppcheck --enable=all --inconclusive --std=posix . ndp_msg_opt_dnssl_domain(): if (dom_len > len) return NULL; if (strlen(buf)) ----> sprintf(buf, "%s.", buf); buf[strlen(buf) + dom_len] = '\0'; memcpy(buf + strlen(buf), ptr, dom_len); So just use strcat instead. Reported-by: Dan Williams <dcbw@redhat.com> Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 98bdaa1cb94faff0ccf992abc40a352ea16640fa Author: Jiri Pirko <jiri@resnulli.us> Date: Tue Oct 15 14:24:55 2013 +0200 1.2 release Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 38fd5157e1f97585bb4da35b5ead611824766aa9 Author: Jiri Pirko <jiri@resnulli.us> Date: Mon Oct 7 16:45:56 2013 +0200 libndp: silently ignore packets with optlen 0 as RFC 2461 requires. Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 41876d610802747316e2d05f2c48d80126e4c8ae Author: Jiri Pirko <jiri@resnulli.us> Date: Mon Oct 7 16:09:53 2013 +0200 libndp: fix processing for larger options Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit c6642387d1a2dd0c1ee230c126b629477da3add6 Author: Jiri Pirko <jiri@resnulli.us> Date: Mon Oct 7 16:03:31 2013 +0200 libndp: do not fail on receiving non-ndp packets Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit fbee7a5beda5f20e3f2bbbc7cf823440c1a08b9f Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Oct 4 14:03:04 2013 +0200 1.1 release Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit d2247aae11c80a4e3c0084d9294c858bdcaf26c7 Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Aug 16 11:21:14 2013 +0200 fix cflags path in pc file Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 776fb96b15a2c0c2b6fc5398939dce10630e1256 Author: Yanko Kaneti <yaneti@declera.com> Date: Thu Aug 8 12:40:42 2013 +0300 ndptool: fix -v argument Signed-off-by: Yanko Kaneti <yaneti@declera.com> Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 546cbe8a76fb1c4127958191e691614eb7c8d2cd Author: Jiri Pirko <jiri@resnulli.us> Date: Thu Aug 8 10:43:03 2013 +0200 README: remove copy&paste leftovers Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 18183fd2fe717f874f2a9e6be6f5072cfff36ce5 Author: Jiri Pirko <jiri@resnulli.us> Date: Thu Aug 8 10:41:03 2013 +0200 update README Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit af67f0c3a54ed06d62c704a84d462ebf029fb970 Author: Jiri Pirko <jiri@resnulli.us> Date: Thu Aug 8 10:17:36 2013 +0200 1.0 release Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 94e8912597bb3894f736e50d4efc62ba8f3baa09 Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Aug 2 15:21:32 2013 +0200 put utils/ndptool into .gitignore Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 873037aaf480b7c84cd2835b1207ffff3daee319 Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Jul 19 08:20:12 2013 +0200 fix configure.ac Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 69d1c977b4770e651db6bc498fdca9c3061cef8c Author: Jiri Pirko <jiri@resnulli.us> Date: Thu Jun 13 16:10:50 2013 +0200 add flag getters for prefix option Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 39e1f53dd4efc00b84ff097b15558747c92593f2 Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Jun 7 08:40:47 2013 +0200 libndp: allow mysendto6() to fail when iface is down and for other errors Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit e9666098cb6b0c9e8fcfaef2f643f1eae4909f89 Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Jun 7 08:37:43 2013 +0200 libndp: add ndp_callall_eventfd_handler() Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit ca3c399c269e30d4d0ed384d36b4ed1f00e8f4b2 Author: Jiri Pirko <jiri@resnulli.us> Date: Sat May 4 18:37:50 2013 +0200 fix compile error on ia32 Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit f469b90066e7839363d67685d5592632d7df48fa Author: Jiri Pirko <jiri@resnulli.us> Date: Wed Apr 17 17:16:59 2013 +0200 add missing list.h into Makefile.am Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 163c80bc7fd0ee3f407001ab01895c946d50c587 Author: Jiri Pirko <jiri@resnulli.us> Date: Tue Apr 16 15:33:32 2013 +0200 add man page for ndptool Signed-off-by: Jiri Pirko <jiri@resnulli.us> create mode 100644 man/Makefile.am create mode 100644 man/ndptool.8 commit 1bb29270ca09e9444630450fa134427e2b387cb3 Author: Jiri Pirko <jiri@resnulli.us> Date: Mon Apr 15 17:21:15 2013 +0200 ndptool: push litefime printout into separete function Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 70540ef693a54785ff7696ff938943a4b272ec3f Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Apr 12 18:15:39 2013 +0200 add support for DNS Search List (rfc6106) Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 266a76d719ed860972563b28645280a14eb53dcf Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Apr 12 16:30:21 2013 +0200 lib: add missing offset arg comment Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 2cc9aea1d36fcc1ad66b5e77d56431a51ea8d8ea Author: Jiri Pirko <jiri@resnulli.us> Date: Thu Apr 11 17:11:02 2013 +0200 add support for Recursive DNS Server (rfc6106) Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 936550245e9168fe11dd027c47dc3fecb2625c18 Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Apr 5 16:13:30 2013 +0200 lib: introcude option validity check callback for separate option types Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit af9bb8bec1af4baee9a8f1539f3ebb1273b1fab9 Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Apr 5 16:09:06 2013 +0200 lib: move msg validity check into separate function Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 7186b5235eda2ab4b42770f0149d9324fd39d9d2 Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Apr 5 15:24:55 2013 +0200 lib: introduce option validity checks Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit eebfbcd0eca46345c51ef656714a0219605a6a6d Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Apr 5 15:07:23 2013 +0200 lib: remove unused fields from RA struct Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 87e1c69a6e3b6e11a074bbbfcb5b930976331247 Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Apr 5 15:00:57 2013 +0200 add support for Default Router Preference in RA msg (rfc4191) Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 8296a5bf075543eef2167afdfecb222e70866744 Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Apr 5 14:37:35 2013 +0200 add support for Route Information Option (rfc4191) Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 49739ab207af9b134dbc57fe613f7ae2cf45594b Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Apr 5 13:22:31 2013 +0200 lib: set addr in myrecvfrom6 Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit ca3dae8b39c6fdd6fced4fb3f828342e781fcdcf Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Mar 29 17:02:38 2013 +0100 libndp: remove unnecessary evenfd struct and handle all by single event fd Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 94ac6837a35b2a4aaf30f01fb919fc90ee88ac1e Author: Jiri Pirko <jiri@resnulli.us> Date: Fri Mar 29 16:49:14 2013 +0100 libndp: change the was opts are handled Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit b5fc78c105e2842351469729521d0be2cda0ef0f Author: Jiri Pirko <jiri@resnulli.us> Date: Sat Mar 16 21:46:58 2013 +0100 ndptool: add support for sending messages Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 65e5f7aa92359892004625f6ed1c7f5c90dae6ff Author: Jiri Pirko <jiri@resnulli.us> Date: Sun Mar 17 10:44:58 2013 +0100 lib: init msg->len accorsding to ND type during init and introduce maxlen getter Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit b2164948b972fc09fcbd26dfdfd011a1773384a7 Author: Jiri Pirko <jiri@resnulli.us> Date: Sun Mar 17 10:31:18 2013 +0100 lib: adjust destination address before send for certain ND types Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 6c41f0bfc851c941fb762b178f62bba28d838320 Author: Jiri Pirko <jiri@resnulli.us> Date: Sat Mar 16 22:17:07 2013 +0100 lib: add forgotten p_msg assign in ndp_msg_new Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit afbaf91e575422be80fae5f4dd67f0a361eca4e7 Author: Jiri Pirko <jiri@resnulli.us> Date: Sat Mar 16 22:05:36 2013 +0100 lib: add msg ifindex setter Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 650e30d185fd0b4ef5fcdebf6720e87a08ec90a3 Author: Jiri Pirko <jiri@resnulli.us> Date: Sat Mar 16 20:08:52 2013 +0100 lib: add support for sending ND messages Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 993764c3b2defdf053facbc29eadc0a4abeddb0d Author: Jiri Pirko <jiri@resnulli.us> Date: Sat Mar 16 20:31:40 2013 +0100 lib: remove local ifindex variable in ndp_sock_recv Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit b125126fbfcf250d7abc62d85dfe6c95a78d785b Author: Jiri Pirko <jiri@resnulli.us> Date: Sat Mar 16 20:14:16 2013 +0100 lib: pass on flags in recvfrom Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 8650eb29d63afb88a73a9ec5c874894ea856aa2f Author: Jiri Pirko <jiri@resnulli.us> Date: Sat Mar 16 19:41:22 2013 +0100 lib: use in6_addr instead od sockaddr_in6 in function params Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit dfed476eee192e86c140298810bb598c927645e8 Author: Jiri Pirko <jiri@resnulli.us> Date: Sat Mar 16 18:33:27 2013 +0100 lib: setup first pointer in all type-specific structures at once Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 3407d519b8eb9a2cda25eefcd53bf4ce950a5d64 Author: Jiri Pirko <jiri@resnulli.us> Date: Sat Mar 16 18:18:08 2013 +0100 lib: remove msg->type and rather use in header value Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit d909910c6a1ae3cc1252c6d9a7478596727b2190 Author: Jiri Pirko <jiri@resnulli.us> Date: Sat Mar 16 17:54:23 2013 +0100 lib: get rid of ndp_process_* functions Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 4099a4e906dac41861064c52a9658da67e05cb59 Author: Jiri Pirko <jiri@resnulli.us> Date: Sat Mar 16 17:33:23 2013 +0100 lib: move len check into ndp_sock_recv Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 83d3a43b08496a4308aa8550b688934ed391ce42 Author: Jiri Pirko <jiri@resnulli.us> Date: Sat Mar 16 17:37:07 2013 +0100 lib: introduce ndp_msg_type_info() helper Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 7c5157f47a7d82c33d638e15d08ae1151ddb9f9f Author: Jiri Pirko <jiri@resnulli.us> Date: Sat Mar 16 17:04:23 2013 +0100 lib: fix memory leak on receiving small packets Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit ca1d228df4b8bbdb8e59a6fcf3e6a57f50a37049 Author: Jiri Pirko <jiri@resnulli.us> Date: Sat Mar 16 17:03:23 2013 +0100 lib: introduce ndp_get_type_by_raw_type() and use it to find out msg type Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit a6b32ab7a0933470f06b8c8b055dcf2948f05345 Author: Jiri Pirko <jiri@resnulli.us> Date: Sat Mar 16 16:52:22 2013 +0100 lib: move "struct icmp6_hdr *" into msg struct and init it in alloc Signed-off-by: Jiri Pirko <jiri@resnulli.us> commit 37d1f82396af8b67e604c6a207ce28a03aca6f1d Author: Jiri Pirko <jiri@resnulli.us> Date: Sat Mar 16 16:44:49 2013 +0100 lib: do not parse packet right away but do rather for every getter 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> commit 04c2d9d32a7dad6a4830bca132fc4ca72b276ac6 Author: Jiri Pirko <jiri@resnulli.us> Date: Mon Mar 11 09:22:54 2013 +0100 initial Signed-off-by: Jiri Pirko <jiri@resnulli.us> create mode 100644 .gitignore create mode 100644 COPYING create mode 100644 Makefile.am create mode 100644 README create mode 100755 autogen.sh create mode 100644 configure.ac create mode 100644 include/Makefile.am create mode 100644 include/ndp.h create mode 100644 libndp/Makefile.am create mode 100644 libndp/libndp.c create mode 100644 libndp/libndp.pc.in create mode 100644 libndp/list.h create mode 100644 libndp/ndp_private.h create mode 100644 m4/.gitignore create mode 100644 utils/Makefile.am create mode 100644 utils/ndptool.c |