diff --git a/configure.ac b/configure.ac index 751683d..4ea272b 100644 --- a/configure.ac +++ b/configure.ac @@ -40,7 +40,7 @@ m4_define([libnl_lt_revision], [0]) m4_define([libnl_lt_age], [21]) m4_define([libnl_version], - [libnl_major_version.libnl_minor_version.libnl_micro_version-rc1]) + [libnl_major_version.libnl_minor_version.libnl_micro_version]) AC_INIT(libnl, [libnl_version], [], [], [http://www.infradead.org/~tgr/libnl/]) AC_CONFIG_HEADERS([lib/defs.h]) diff --git a/doc/configure.ac b/doc/configure.ac index d2a60f2..d243061 100644 --- a/doc/configure.ac +++ b/doc/configure.ac @@ -9,7 +9,7 @@ # Copyright (c) 2003-2013 Thomas Graf # -AC_INIT(libnl-doc, [3.2.26-rc1], [http://www.infradead.org/~tgr/libnl/]) +AC_INIT(libnl-doc, [3.2.26], [http://www.infradead.org/~tgr/libnl/]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_AUX_DIR([build-aux]) AM_INIT_AUTOMAKE([foreign]) diff --git a/include/netlink/utils.h b/include/netlink/utils.h index c609c6c..ac448c5 100644 --- a/include/netlink/utils.h +++ b/include/netlink/utils.h @@ -126,9 +126,15 @@ enum { * address timestamps and expiry when comparing struct rtnl_addr objects with * nl_object_diff(). */ - NL_CAPABILITY_ROUTE_ADDR_COMPARE_CACHEINFO = 6, + NL_CAPABILITY_ROUTE_ADDR_COMPARE_CACHEINFO = 6, #define NL_CAPABILITY_ROUTE_ADDR_COMPARE_CACHEINFO NL_CAPABILITY_ROUTE_ADDR_COMPARE_CACHEINFO + /** + * The library version is libnl3 3.2.26 or newer. This capability should never be backported. + */ + NL_CAPABILITY_VERSION_3_2_26 = 7, +#define NL_CAPABILITY_VERSION_3_2_26 NL_CAPABILITY_VERSION_3_2_26 + __NL_CAPABILITY_MAX, NL_CAPABILITY_MAX = (__NL_CAPABILITY_MAX - 1), #define NL_CAPABILITY_MAX NL_CAPABILITY_MAX diff --git a/lib/utils.c b/lib/utils.c index 22f5f42..68ea762 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -1150,7 +1150,7 @@ int nl_has_capability (int capability) NL_CAPABILITY_NL_CONNECT_RETRY_GENERATE_PORT_ON_ADDRINUSE, NL_CAPABILITY_ROUTE_LINK_GET_KERNEL_FAIL_OPNOTSUPP, NL_CAPABILITY_ROUTE_ADDR_COMPARE_CACHEINFO, - 0, + NL_CAPABILITY_VERSION_3_2_26, 0), /* IMPORTANT: these capability numbers are intended to be universal and stable * for libnl3. Don't allocate new numbers on your own that differ from upstream