Hello community,

here is the log from the commit of package libndp for openSUSE:Factory checked 
in at 2018-11-06 14:07:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libndp (Old)
 and      /work/SRC/openSUSE:Factory/.libndp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libndp"

Tue Nov  6 14:07:57 2018 rev:7 rq:644345 version:1.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/libndp/libndp.changes    2018-03-07 
10:31:11.390027033 +0100
+++ /work/SRC/openSUSE:Factory/.libndp.new/libndp.changes       2018-11-06 
14:08:35.163122849 +0100
@@ -1,0 +2,8 @@
+Wed Oct 24 14:05:56 UTC 2018 - [email protected]
+
+- Update to version 1.7
+  * fix socket fd missing for O_CLOEXEC
+  * Fix issue where not sending all IPs to an interface
+  * typo in ndptool.c fixed
+
+-------------------------------------------------------------------

Old:
----
  libndp-1.6.tar.gz

New:
----
  libndp-1.7.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libndp.spec ++++++
--- /var/tmp/diff_new_pack.YaXXOB/_old  2018-11-06 14:08:36.127121581 +0100
+++ /var/tmp/diff_new_pack.YaXXOB/_new  2018-11-06 14:08:36.127121581 +0100
@@ -12,12 +12,12 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           libndp
-Version:        1.6
+Version:        1.7
 Release:        0
 Summary:        Library for Neighbor Discovery Protocol
 License:        LGPL-2.1-or-later

++++++ libndp-1.6.tar.gz -> libndp-1.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libndp-1.6/Makefile.in new/libndp-1.7/Makefile.in
--- old/libndp-1.6/Makefile.in  2016-05-17 12:50:01.000000000 +0200
+++ new/libndp-1.7/Makefile.in  2018-06-08 11:36:53.000000000 +0200
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
+# Makefile.in generated by automake 1.15.1 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
+# Copyright (C) 1994-2017 Free Software Foundation, Inc.
 
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -166,8 +166,8 @@
        $(top_srcdir)/build-aux/ltmain.sh \
        $(top_srcdir)/build-aux/missing COPYING README \
        build-aux/ar-lib build-aux/compile build-aux/config.guess \
-       build-aux/config.sub build-aux/install-sh build-aux/ltmain.sh \
-       build-aux/missing
+       build-aux/config.sub build-aux/depcomp build-aux/install-sh \
+       build-aux/ltmain.sh build-aux/missing
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 distdir = $(PACKAGE)-$(VERSION)
 top_distdir = $(distdir)
@@ -548,7 +548,7 @@
          ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
        || chmod -R a+r "$(distdir)"
 dist-gzip: distdir
-       tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c 
>$(distdir).tar.gz
+       tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c 
>$(distdir).tar.gz
        $(am__post_remove_distdir)
 
 dist-bzip2: distdir
@@ -574,7 +574,7 @@
        @echo WARNING: "Support for shar distribution archives is" \
                       "deprecated." >&2
        @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
-       shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+       shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
        $(am__post_remove_distdir)
 
 dist-zip: distdir
@@ -592,7 +592,7 @@
 distcheck: dist
        case '$(DIST_ARCHIVES)' in \
        *.tar.gz*) \
-         GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
+         eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
        *.tar.bz2*) \
          bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
        *.tar.lz*) \
@@ -602,7 +602,7 @@
        *.tar.Z*) \
          uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
        *.shar.gz*) \
-         GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
+         eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
        *.zip*) \
          unzip $(distdir).zip ;;\
        esac
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libndp-1.6/aclocal.m4 new/libndp-1.7/aclocal.m4
--- old/libndp-1.6/aclocal.m4   2016-05-17 12:49:59.000000000 +0200
+++ new/libndp-1.7/aclocal.m4   2018-06-08 11:36:53.000000000 +0200
@@ -1,6 +1,6 @@
-# generated automatically by aclocal 1.15 -*- Autoconf -*-
+# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
 
-# Copyright (C) 1996-2014 Free Software Foundation, Inc.
+# Copyright (C) 1996-2017 Free Software Foundation, Inc.
 
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -20,7 +20,7 @@
 If you have problems, you may need to regenerate the build system entirely.
 To do so, use the procedure documented by the package, typically 
'autoreconf'.])])
 
-# Copyright (C) 2002-2014 Free Software Foundation, Inc.
+# Copyright (C) 2002-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -35,7 +35,7 @@
 [am__api_version='1.15'
 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 dnl require some minimum version.  Point them to the right macro.
-m4_if([$1], [1.15], [],
+m4_if([$1], [1.15.1], [],
       [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 ])
 
@@ -51,12 +51,12 @@
 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
-[AM_AUTOMAKE_VERSION([1.15])dnl
+[AM_AUTOMAKE_VERSION([1.15.1])dnl
 m4_ifndef([AC_AUTOCONF_VERSION],
   [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
-# Copyright (C) 2011-2014 Free Software Foundation, Inc.
+# Copyright (C) 2011-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -118,7 +118,7 @@
 
 # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -170,7 +170,7 @@
 
 # AM_CONDITIONAL                                            -*- Autoconf -*-
 
-# Copyright (C) 1997-2014 Free Software Foundation, Inc.
+# Copyright (C) 1997-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -201,7 +201,7 @@
 Usually this means the macro was only invoked conditionally.]])
 fi])])
 
-# Copyright (C) 1999-2014 Free Software Foundation, Inc.
+# Copyright (C) 1999-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -392,7 +392,7 @@
 
 # Generate code to set up dependency tracking.              -*- Autoconf -*-
 
-# Copyright (C) 1999-2014 Free Software Foundation, Inc.
+# Copyright (C) 1999-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -468,7 +468,7 @@
 
 # Do all the work for Automake.                             -*- Autoconf -*-
 
-# Copyright (C) 1996-2014 Free Software Foundation, Inc.
+# Copyright (C) 1996-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -665,7 +665,7 @@
 done
 echo "timestamp for $_am_arg" 
>`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -686,7 +686,7 @@
 fi
 AC_SUBST([install_sh])])
 
-# Copyright (C) 2003-2014 Free Software Foundation, Inc.
+# Copyright (C) 2003-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -707,7 +707,7 @@
 
 # Check to see how 'make' treats includes.                 -*- Autoconf -*-
 
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -757,7 +757,7 @@
 
 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
-# Copyright (C) 1997-2014 Free Software Foundation, Inc.
+# Copyright (C) 1997-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -796,7 +796,7 @@
 
 # Helper functions for option handling.                     -*- Autoconf -*-
 
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -825,7 +825,7 @@
 AC_DEFUN([_AM_IF_OPTION],
 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
-# Copyright (C) 1999-2014 Free Software Foundation, Inc.
+# Copyright (C) 1999-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -872,7 +872,7 @@
 # For backward compatibility.
 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
 
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -891,7 +891,7 @@
 
 # Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
-# Copyright (C) 1996-2014 Free Software Foundation, Inc.
+# Copyright (C) 1996-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -972,7 +972,7 @@
 rm -f conftest.file
 ])
 
-# Copyright (C) 2009-2014 Free Software Foundation, Inc.
+# Copyright (C) 2009-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -1032,7 +1032,7 @@
 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 ])
 
-# Copyright (C) 2001-2014 Free Software Foundation, Inc.
+# Copyright (C) 2001-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -1060,7 +1060,7 @@
 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
-# Copyright (C) 2006-2014 Free Software Foundation, Inc.
+# Copyright (C) 2006-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -1079,7 +1079,7 @@
 
 # Check how to create a tarball.                            -*- Autoconf -*-
 
-# Copyright (C) 2004-2014 Free Software Foundation, Inc.
+# Copyright (C) 2004-2017 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libndp-1.6/configure new/libndp-1.7/configure
--- old/libndp-1.6/configure    2016-05-17 12:50:00.000000000 +0200
+++ new/libndp-1.7/configure    2018-06-08 11:36:53.000000000 +0200
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for libndp 1.6.
+# Generated by GNU Autoconf 2.69 for libndp 1.7.
 #
 # Report bugs to <[email protected]>.
 #
@@ -590,8 +590,8 @@
 # Identity of this package.
 PACKAGE_NAME='libndp'
 PACKAGE_TARNAME='libndp'
-PACKAGE_VERSION='1.6'
-PACKAGE_STRING='libndp 1.6'
+PACKAGE_VERSION='1.7'
+PACKAGE_STRING='libndp 1.7'
 PACKAGE_BUGREPORT='[email protected]'
 PACKAGE_URL=''
 
@@ -1317,7 +1317,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures libndp 1.6 to adapt to many kinds of systems.
+\`configure' configures libndp 1.7 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1387,7 +1387,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of libndp 1.6:";;
+     short | recursive ) echo "Configuration of libndp 1.7:";;
    esac
   cat <<\_ACEOF
 
@@ -1499,7 +1499,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-libndp configure 1.6
+libndp configure 1.7
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1868,7 +1868,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by libndp $as_me 1.6, which was
+It was created by libndp $as_me 1.7, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2732,7 +2732,7 @@
 
 # Define the identity of the package.
  PACKAGE='libndp'
- VERSION='1.6'
+ VERSION='1.7'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -4092,7 +4092,7 @@
 
 LIBNDP_CURRENT=1
 
-LIBNDP_REVISION=0
+LIBNDP_REVISION=1
 
 LIBNDP_AGE=1
 
@@ -13628,7 +13628,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by libndp $as_me 1.6, which was
+This file was extended by libndp $as_me 1.7, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -13685,7 +13685,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; 
s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-libndp config.status 1.6
+libndp config.status 1.7
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libndp-1.6/configure.ac new/libndp-1.7/configure.ac
--- old/libndp-1.6/configure.ac 2016-05-17 12:46:16.000000000 +0200
+++ new/libndp-1.7/configure.ac 2018-06-08 11:34:21.000000000 +0200
@@ -1,7 +1,7 @@
 #                                               -*- Autoconf -*-
 # Process this file with autoconf to produce a configure script.
 
-AC_INIT([libndp], [1.6], [[email protected]])
+AC_INIT([libndp], [1.7], [[email protected]])
 AC_CONFIG_AUX_DIR([build-aux])
 AC_CONFIG_MACRO_DIR([m4])
 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
@@ -23,7 +23,7 @@
 #    release, then set age to 0.
 
 AC_SUBST(LIBNDP_CURRENT, 1)
-AC_SUBST(LIBNDP_REVISION, 0)
+AC_SUBST(LIBNDP_REVISION, 1)
 AC_SUBST(LIBNDP_AGE, 1)
 
 CFLAGS="$CFLAGS -Wall"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libndp-1.6/include/Makefile.in 
new/libndp-1.7/include/Makefile.in
--- old/libndp-1.6/include/Makefile.in  2016-05-17 12:50:01.000000000 +0200
+++ new/libndp-1.7/include/Makefile.in  2018-06-08 11:36:53.000000000 +0200
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
+# Makefile.in generated by automake 1.15.1 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
+# Copyright (C) 1994-2017 Free Software Foundation, Inc.
 
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libndp-1.6/libndp/Makefile.in 
new/libndp-1.7/libndp/Makefile.in
--- old/libndp-1.6/libndp/Makefile.in   2016-05-17 12:50:01.000000000 +0200
+++ new/libndp-1.7/libndp/Makefile.in   2018-06-08 11:36:53.000000000 +0200
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
+# Makefile.in generated by automake 1.15.1 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
+# Copyright (C) 1994-2017 Free Software Foundation, Inc.
 
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libndp-1.6/libndp/libndp.c 
new/libndp-1.7/libndp/libndp.c
--- old/libndp-1.6/libndp/libndp.c      2016-05-17 12:43:33.000000000 +0200
+++ new/libndp-1.7/libndp/libndp.c      2016-08-29 09:06:07.000000000 +0200
@@ -230,59 +230,6 @@
  * @short_description: functions that actually implements NDP
  */
 
-static int ndp_sock_open(struct ndp *ndp)
-{
-       int sock;
-       //struct icmp6_filter flt;
-       int ret;
-       int err;
-       int val;
-
-       sock = socket(PF_INET6, SOCK_RAW, IPPROTO_ICMPV6);
-       if (sock == -1) {
-               err(ndp, "Failed to create ICMP6 socket.");
-               return -errno;
-       }
-
-       val = 1;
-       ret = setsockopt(sock, IPPROTO_IPV6, IPV6_RECVPKTINFO,
-                        &val, sizeof(val));
-       if (ret == -1) {
-               err(ndp, "Failed to setsockopt IPV6_RECVPKTINFO.");
-               err = -errno;
-               goto close_sock;
-       }
-
-       val = 255;
-       ret = setsockopt(sock, IPPROTO_IPV6, IPV6_MULTICAST_HOPS,
-                        &val, sizeof(val));
-       if (ret == -1) {
-               err(ndp, "Failed to setsockopt IPV6_MULTICAST_HOPS.");
-               err = -errno;
-               goto close_sock;
-       }
-
-       val = 1;
-       ret = setsockopt(sock, IPPROTO_IPV6, IPV6_RECVHOPLIMIT,
-                        &val, sizeof(val));
-       if (ret == -1) {
-               err(ndp, "Failed to setsockopt IPV6_RECVHOPLIMIT,.");
-               err = -errno;
-               goto close_sock;
-       }
-
-       ndp->sock = sock;
-       return 0;
-close_sock:
-       close(sock);
-       return err;
-}
-
-static void ndp_sock_close(struct ndp *ndp)
-{
-       close(ndp->sock);
-}
-
 struct ndp_msggeneric {
        void *dataptr; /* must be first */
 };
@@ -336,6 +283,7 @@
        bool (*addrto_validate)(struct in6_addr *addr);
 };
 
+
 static void ndp_msg_addrto_adjust_all_nodes(struct in6_addr *addr)
 {
        struct in6_addr any = IN6ADDR_ANY_INIT;
@@ -1781,6 +1729,77 @@
 }
 
 
+/**
+ * SECTION: socket open/close functions
+ * @short_description: functions for opening and closing the ICMPv6 raw socket
+ */
+
+static int ndp_sock_open(struct ndp *ndp)
+{
+       int sock;
+       struct icmp6_filter flt;
+       int ret;
+       int err;
+       int val;
+       int i;
+
+       sock = socket(PF_INET6, SOCK_RAW, IPPROTO_ICMPV6);
+       if (sock == -1) {
+               err(ndp, "Failed to create ICMP6 socket.");
+               return -errno;
+       }
+
+       val = 1;
+       ret = setsockopt(sock, IPPROTO_IPV6, IPV6_RECVPKTINFO,
+                        &val, sizeof(val));
+       if (ret == -1) {
+               err(ndp, "Failed to setsockopt IPV6_RECVPKTINFO.");
+               err = -errno;
+               goto close_sock;
+       }
+
+       val = 255;
+       ret = setsockopt(sock, IPPROTO_IPV6, IPV6_MULTICAST_HOPS,
+                        &val, sizeof(val));
+       if (ret == -1) {
+               err(ndp, "Failed to setsockopt IPV6_MULTICAST_HOPS.");
+               err = -errno;
+               goto close_sock;
+       }
+
+       val = 1;
+       ret = setsockopt(sock, IPPROTO_IPV6, IPV6_RECVHOPLIMIT,
+                        &val, sizeof(val));
+       if (ret == -1) {
+               err(ndp, "Failed to setsockopt IPV6_RECVHOPLIMIT,.");
+               err = -errno;
+               goto close_sock;
+       }
+
+       ICMP6_FILTER_SETBLOCKALL(&flt);
+       for (i = 0; i < NDP_MSG_TYPE_LIST_SIZE; i++)
+               ICMP6_FILTER_SETPASS(ndp_msg_type_info(i)->raw_type, &flt);
+       ret = setsockopt(sock, IPPROTO_ICMPV6, ICMP6_FILTER, &flt,
+                        sizeof(flt));
+       if (ret == -1) {
+               err(ndp, "Failed to setsockopt ICMP6_FILTER.");
+               err = -errno;
+               goto close_sock;
+       }
+
+       ndp->sock = sock;
+       return 0;
+close_sock:
+       close(sock);
+       return err;
+}
+
+static void ndp_sock_close(struct ndp *ndp)
+{
+       close(ndp->sock);
+}
+
+
 /**
  * SECTION: msgrcv handler
  * @short_description: msgrcv handler and related stuff
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libndp-1.6/man/Makefile.in 
new/libndp-1.7/man/Makefile.in
--- old/libndp-1.6/man/Makefile.in      2016-05-17 12:50:01.000000000 +0200
+++ new/libndp-1.7/man/Makefile.in      2018-06-08 11:36:53.000000000 +0200
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
+# Makefile.in generated by automake 1.15.1 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
+# Copyright (C) 1994-2017 Free Software Foundation, Inc.
 
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libndp-1.6/utils/Makefile.in 
new/libndp-1.7/utils/Makefile.in
--- old/libndp-1.6/utils/Makefile.in    2016-05-17 12:50:01.000000000 +0200
+++ new/libndp-1.7/utils/Makefile.in    2018-06-08 11:36:53.000000000 +0200
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
+# Makefile.in generated by automake 1.15.1 from Makefile.am.
 # @configure_input@
 
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
+# Copyright (C) 1994-2017 Free Software Foundation, Inc.
 
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libndp-1.6/utils/ndptool.c 
new/libndp-1.7/utils/ndptool.c
--- old/libndp-1.6/utils/ndptool.c      2016-05-17 12:43:33.000000000 +0200
+++ new/libndp-1.7/utils/ndptool.c      2016-06-15 07:52:09.000000000 +0200
@@ -28,6 +28,7 @@
 #include <arpa/inet.h>
 #include <errno.h>
 #include <ndp.h>
+#include <sys/select.h>
 
 enum verbosity_level {
        VERB1,


Reply via email to