From vadimi at storwize.com  Wed Jun  3 05:35:19 2009
From: vadimi at storwize.com (Vadim Idelchuk)
Date: Wed, 3 Jun 2009 12:35:19 +0300
Subject: Create static library instead of shred object
Message-ID: <0C22B6EFEE0DBB4A9F9F3801E8790B3A01F47D5C@swdc2.storwiz.com>

 Hi,

I need to use static form of library.
The following are changes in lib/Makefile

@@ -39,12 +39,7 @@
 ROUTE_LIB := $(PACKAGE_NAME)-route.so
 GENL_LIB  := $(PACKAGE_NAME)-genl.so
 NF_LIB    := $(PACKAGE_NAME)-nf.so
-CORE_SLIB  := $(PACKAGE_NAME).a
-ROUTE_SLIB := $(PACKAGE_NAME)-route.a
-GENL_SLIB  := $(PACKAGE_NAME)-genl.a
-NF_SLIB    := $(PACKAGE_NAME)-nf.a
-LIBS      := $(CORE_LIB) $(ROUTE_LIB) $(GENL_LIB) $(NF_LIB) \
-               $(CORE_SLIB) $(ROUTE_SLIB) $(GENL_SLIB) $(NF_SLIB)
+LIBS      := $(CORE_LIB) $(ROUTE_LIB) $(GENL_LIB) $(NF_LIB)
 LIBS_V    := $(LIBS:%.so=%.so.$(PACKAGE_VERSION))

 export
@@ -59,10 +54,6 @@
        @echo "  LD $@"; \
        $(CC) -shared -Wl,-soname=$@ -o $@ $^ $(LIBNL_LIB)

-$(CORE_SLIB): $(CORE_OBJ)
-       @echo "AR cr $@ $^";\
-       $(AR) cr $@ $^
-
 $(CORE_LIB): $(CORE_LIB).$(PACKAGE_VERSION)
        @echo "  LN $@ -> $<"; \
        $(RM) -f $@; $(LN) $< -s $@
@@ -71,10 +62,6 @@
        @echo "  LD $@"; \
        $(CC) -shared -Wl,-soname=$@ -o $@ $^ $(LIBNL_LIB) -lnl

-$(ROUTE_SLIB): $(ROUTE_OBJ) $(CORE_SLIB)
-       @echo "AR cr $@ $^ $(CORE_SLIB)";\
-       $(AR) cr $@ $^ $(CORE_SLIB)
-
 $(ROUTE_LIB): $(ROUTE_LIB).$(PACKAGE_VERSION)
        @echo "  LN $@ -> $<"; \
        $(RM) -f $@; $(LN) $< -s $@
@@ -83,10 +70,6 @@
        @echo "  LD $@"; \
        $(CC) -shared -Wl,-soname=$@ -o $@ $^ $(LIBNL_LIB) -lnl

-$(GENL_SLIB): $(GENL_OBJ) $(CORE_SLIB)
-       @echo "AR cr $@ $^ $(CORE_SLIB)";\
-       $(AR) cr $@ $^ $(CORE_SLIB)
-
 $(GENL_LIB): $(GENL_LIB).$(PACKAGE_VERSION)
        @echo "  LN $@ -> $<"; \
        $(RM) -f $@; $(LN) $< -s $@
@@ -95,10 +78,6 @@
        @echo "  LD $@"; \
        $(CC) -shared -Wl,-soname=$@ -o $@ $^ $(LIBNL_LIB) -lnl
-lnl-route

-$(NF_SLIB): $(NF_OBJ) $(CORE_SLIB) $(ROUTE_SLIB)
-       @echo "AR cr $@ $^ $(CORE_SLIB) $(ROUTE_SLIB)";\
-       $(AR) cr $@ $^ $(CORE_SLIB) $(ROUTE_SLIB)
-
 $(NF_LIB): $(NF_LIB).$(PACKAGE_VERSION)
        @echo "  LN $@ -> $<"; \
        $(RM) -f $@; $(LN) $< -s $@
 
Vadim Idelchuk
03-5391617
vadimi at storwize.com 


From devurandom at gmx.net  Mon Jun  8 03:12:23 2009
From: devurandom at gmx.net (Dennis Schridde)
Date: Mon, 8 Jun 2009 09:12:23 +0200
Subject: Tunnel creation via libnl
Message-ID: <200906080912.28044.devurandom@gmx.net>

Hello!


I would like to know whether it is possible to create a tunnel interface via 
libnl/netlink.


My application has to dynamically create a tunnel based on data it receives 
from a server, so I am currently using a tool like "ip" from iproute2 to setup 
the tunnel. When I came across libnl today, I found it would be a much cleaner 
method. So if possible, I would like to use it instead.

Best regards,
Dennis Schridde
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://bombadil.infradead.org/pipermail/libnl/attachments/20090608/99cb6d61/attachment.bin>

