From itaifg at infinidat.com  Mon Mar  7 05:56:56 2016
From: itaifg at infinidat.com (Itai Fiat Gecht)
Date: Mon, 7 Mar 2016 15:56:56 +0200
Subject: Getting an IPv6 address scope id from rtnl_addr
Message-ID: <CAAPSPUvZZHXhrpDjqgObv34JRgkgYiNnMusVOyH3WRFhoJUSVw@mail.gmail.com>

Hello,

Is there a way of getting an IPv6 address's scope id from an rtnl_addr
pointer?

(I'm speaking about the scope id which can be used in the sin6_scope_id field
of sockaddr_in6, not the scope returned by rtnl_addr_get_scope().)

Itai


From thaller at redhat.com  Tue Mar  8 08:07:40 2016
From: thaller at redhat.com (Thomas Haller)
Date: Tue, 08 Mar 2016 17:07:40 +0100
Subject: Getting an IPv6 address scope id from rtnl_addr
In-Reply-To: <CAAPSPUvZZHXhrpDjqgObv34JRgkgYiNnMusVOyH3WRFhoJUSVw@mail.gmail.com>
References: <CAAPSPUvZZHXhrpDjqgObv34JRgkgYiNnMusVOyH3WRFhoJUSVw@mail.gmail.com>
Message-ID: <1457453260.3460.35.camel@redhat.com>

On Mon, 2016-03-07 at 15:56 +0200, Itai Fiat Gecht wrote:
> Hello,
> 
> Is there a way of getting an IPv6 address's scope id from an
> rtnl_addr
> pointer?
> 
> (I'm speaking about the scope id which can be used in the
> sin6_scope_id field
> of sockaddr_in6, not the scope returned by rtnl_addr_get_scope().)
> 

Hi,

isn't the sin6_scope_id value simply the ifindex of the link?
rtnl_link_get_ifindex()

Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20160308/d8579988/attachment.sig>

From itaifg at infinidat.com  Wed Mar  9 01:58:06 2016
From: itaifg at infinidat.com (Itai Fiat Gecht)
Date: Wed, 9 Mar 2016 11:58:06 +0200
Subject: Getting an IPv6 address scope id from rtnl_addr
In-Reply-To: <1457453260.3460.35.camel@redhat.com>
References: <CAAPSPUvZZHXhrpDjqgObv34JRgkgYiNnMusVOyH3WRFhoJUSVw@mail.gmail.com>
 <1457453260.3460.35.camel@redhat.com>
Message-ID: <CAAPSPUt=cELujPi73iidbhAe69QFpfuwOibvPWTSwhgQxRDfQA@mail.gmail.com>

>> Is there a way of getting an IPv6 address's scope id from an
>> rtnl_addr pointer?
>>
>> (I'm speaking about the scope id which can be used in the
>> sin6_scope_id field of sockaddr_in6, not the scope returned
>> by rtnl_addr_get_scope().)
>
> isn't the sin6_scope_id value simply the ifindex of the link?
> rtnl_link_get_ifindex()

It is, but I was hoping for something more explicit (in case the
method of determining scope ids changes at some point in the
future).


From tklauser at distanz.ch  Thu Mar 31 05:42:31 2016
From: tklauser at distanz.ch (Tobias Klauser)
Date: Thu, 31 Mar 2016 14:42:31 +0200
Subject: [PATCH] build: Move -rdynamic from CPPFLAGS to LDFLAGS
Message-ID: <1459428151-16038-1-git-send-email-tklauser@distanz.ch>

The -rdynamic flag is a linker flag, not a compiler/preprocessor flag,
so move it to LDFLAGS.

Signed-off-by: Tobias Klauser <tklauser at distanz.ch>
---
 src/lib/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index 9b83e4fb0f61..77076509f3e0 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -6,11 +6,11 @@ AM_CPPFLAGS  = \
 	-I${top_builddir}/include \
 	-D_GNU_SOURCE \
 	-DPKGLIBDIR=\"$(pkglibdir)\" \
-	-DSYSCONFDIR=\"$(sysconfdir)\" \
-	-rdynamic
+	-DSYSCONFDIR=\"$(sysconfdir)\"
 
 AM_CFLAGS = -Wall
 AM_LDFLAGS = \
+	-rdynamic \
 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
 NL_LIBADD = \
 	-L${top_builddir}/lib \
-- 
2.8.0




From thaller at redhat.com  Thu Mar 31 06:32:24 2016
From: thaller at redhat.com (Thomas Haller)
Date: Thu, 31 Mar 2016 15:32:24 +0200
Subject: [PATCH] build: Move -rdynamic from CPPFLAGS to LDFLAGS
In-Reply-To: <1459428151-16038-1-git-send-email-tklauser@distanz.ch>
References: <1459428151-16038-1-git-send-email-tklauser@distanz.ch>
Message-ID: <1459431144.4022.2.camel@redhat.com>

On Thu, 2016-03-31 at 14:42 +0200, Tobias Klauser wrote:
> The -rdynamic flag is a linker flag, not a compiler/preprocessor
> flag,
> so move it to LDFLAGS.
> 
> Signed-off-by: Tobias Klauser <tklauser at distanz.ch>


Hi Tobias,


looks good to me.?

Merge to master:
https://github.com/thom311/libnl/commit/4dd3ca4840e9d2d5fa0bea106d00880e0881d6db


Thanks,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20160331/45d6b1b3/attachment.sig>

