Thomas Haller
4c7a3074bb
build: fix error when running configure --disable-doc
...
Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-01-29 18:13:35 +01:00
Thomas Haller
1a510c57e9
libnl-3.2.24 release
...
Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-01-21 19:48:41 +01:00
Thomas Haller
894acf798d
doc: fix typo in documentation
...
Also fix typo in source code comment.
Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-01-21 19:16:55 +01:00
Thomas Haller
815e192db6
python: fix build error for missing library_path in setup.py
...
Patch obtained from gentoo package.
https://bugs.gentoo.org/show_bug.cgi?id=477110
https://bugs.gentoo.org/show_bug.cgi?id=490584
Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-01-21 19:11:16 +01:00
Thomas Haller
b203c89d86
addr: add address flag IFA_F_NOPREFIXROUTE
...
Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-01-16 11:09:32 +01:00
Cong Wang
aa8877d5c1
act: remove rtnl_act_alloc_cache()
...
It is complicated to cache tc actions, they are different
from tc qdisc's and filters by design. So, it is simple
if we just don't cache them.
This patch only removes the tc action cache allocation API.
We still need to bypass the libnl cache layer from scratch,
but that would not break ABI any more, therefore we can do
it later.
Cc: Thomas Graf <tgraf@suug.ch>
Cc: Thomas Haller <thaller@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-01-15 14:16:46 +01:00
HongweiBi
8dabf9fb1a
bridge: add rtnl_link_add_bridge() function
...
Signed-off-by: HongweiBi <hwbi2008@gmail.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-01-14 14:37:58 +01:00
Thomas Haller
dcc0baac02
addr: add address flag IFA_F_MANAGETEMPADDR
...
Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-01-03 13:38:08 +01:00
Jiri Pirko
42c4133600
add support for IFA_FLAGS nl attribute
...
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-01-03 13:37:56 +01:00
Thomas Haller
2cf635b06a
route: add libnl name prefix to global variable link_policy
...
Public names should be prefixed with a libnl specific
prefix to avoid name collisions. Rename link_policy to
rtln_link_policy.
Related bugs:
https://github.com/thom311/libnl/issues/52
https://bugzilla.gnome.org/show_bug.cgi?id=720902
https://bugs.gentoo.org/show_bug.cgi?id=494986
https://bugs.gentoo.org/show_bug.cgi?id=494890
Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-01-02 11:56:56 +01:00
Thomas Haller
62c37faa3f
libnl-3.2.24-rc1 release
...
Signed-off-by: Thomas Haller <thaller@redhat.com>
2013-12-17 18:31:42 +02:00
Thomas Haller
02c9c2518f
build: fix build failure when using different build dir (make distcheck)
...
`make distcheck` builds outside the source directory using
`../configure --srcdir=..`. This was broken because libnl.sym was
expected in the $(top_srcdir) instead of $(top_builddir).
Signed-off-by: Thomas Haller <thaller@redhat.com>
2013-12-17 18:26:31 +02:00
Cong Wang
d7aca17701
u32: add rtnl_u32_get_key()
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
2013-12-17 18:14:10 +02:00
Thomas Graf
bc717a9bfc
cache: Add missing declaration for nl_cache_find()
...
Reported-by: Andrej.Gantvorg@wago.com
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-12-13 15:57:43 +01:00
Cong Wang
c855e4fef5
add declaration for rtnl_basic_add_action()
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-12-11 09:11:23 +01:00
Thomas Graf
85c0192455
Revert "basic: Add missing declaration for rtnl_basic_add_action()"
...
This reverts commit 4b84836085
.
2013-12-11 09:10:32 +01:00
Thomas Graf
7744a5a7ce
Revert "basic: Declare rtnl_act in basic.h to silence warning"
...
This reverts commit a858d996e9
.
2013-12-11 09:10:26 +01:00
Cong Wang
ea0eec9d30
add an assertion in rtnl_tc_set_link()
...
So that we can catch the bug easily.
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-12-11 09:08:23 +01:00
Thomas Graf
a858d996e9
basic: Declare rtnl_act in basic.h to silence warning
...
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-12-09 15:43:33 +01:00
Cong Wang
438e3ff21f
fix some typo in lib/route/act.c
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-12-09 15:40:11 +01:00
Thomas Graf
4b84836085
basic: Add missing declaration for rtnl_basic_add_action()
...
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-12-09 15:39:11 +01:00
Cong Wang
efdde42fcc
basic: add action removal API
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-12-09 15:38:09 +01:00
Cong Wang
507897a53e
u32: add action removal API
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-12-09 15:36:14 +01:00
Cong Wang
ffbfe92d74
add rtnl_mirred_get* functions
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-12-09 15:33:34 +01:00
Cong Wang
017c971142
rename rtnl_mirred_set_index() to rtnl_mirred_set_ifindex()
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-12-09 15:33:27 +01:00
Cong Wang
b5309e1ea4
fix a bug in rtnl_act_fill()
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-12-09 15:33:17 +01:00
Cong Wang
2b7d1d5ab5
add declaration for rtnl_cls_change()
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-12-09 15:32:56 +01:00
Cong Wang
aa1c5628fd
add a parameter to rtnl_link_veth_add()
...
Usually the peer of a veth device is moved to a new netns
after creation, so add a pid parameter to rtnl_link_veth_add().
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-12-09 15:28:33 +01:00
Cong Wang
8b87ae5516
fix rtnl_link_info_parse() and rtnl_link_fill_info()
...
So that the veth peer could be parsed correctly.
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-12-09 15:28:32 +01:00
Samuel Gauthier
b50a36bf34
The commit 6a8d90f5fe
"attr: Allow attribute type 0" intended to
...
allow the parsing of {netlink,packet,unix}_diag, even if they are
using type 0 for valid attributes.
It lacked this part in nla_parse.
Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Samuel Gauthier <samuel.gauthier@6wind.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-29 09:41:28 +01:00
Thomas Graf
6a8d90f5fe
attr: Allow attribute type 0
...
{netlink,packet,unix}_diag use attribute type 0 for valid
attributes. The value was reserved and usage was prohibited
by the protocol but we can't undo the breakge.
Make libnl accept attribute type 0 to allow parsing these
attributes.
Reported-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-28 23:14:38 +01:00
Jan Engelhardt
bda0f668b6
build: separate compiler and linker flags
...
-Wall is a compiler flag, and thus should be in CFLAGS,
not CPPFLAGS. Similarly, -l belongs into LDADD/LIBADD because of
ordering constraints.
Signed-off-by: Jan Engelhardt <jengelh@inai.de>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-27 23:38:50 +01:00
Cong Wang
ae19ac0154
add fq_codel cli module
...
Cc: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-22 10:13:40 +01:00
Cong Wang
d969a19d9f
add fq_codel qdisc
...
Cc: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-22 10:13:39 +01:00
Cong Wang
3ddecb36ca
fix linux/pkt_act.h inclusion
...
We should copy and use the kernel header linux/tc_act/tc_mirred.h.
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-12 00:41:10 +01:00
Thomas Graf
04040110cd
link: Fall back to global provisioned link cache if object is not a cache resident
...
... if that fails, print ifindices directly.
Reported-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-09 10:13:50 +01:00
Cong Wang
ff94045944
add veth.h into include/Makefile.am
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-09 01:17:49 +01:00
Cong Wang
24e8b522e5
basic: add action support
...
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-09 01:17:01 +01:00
Cong Wang
2e90ed5162
add u32 action test
...
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-09 01:16:31 +01:00
Cong Wang
6cdc32df83
add u32 action support
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-09 01:16:14 +01:00
Cong Wang
9073aaf67e
add mirred tc action
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-09 01:15:31 +01:00
Cong Wang
d6cfd04799
add initial tc action support
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-09 01:12:45 +01:00
Cong Wang
4f075a4fd1
do not compile some address families when not available
...
This fixes the following error while compiling libnl3 on CentOS5:
addr.c:1027: error: 'AF_RDS' undeclared here (not in a function)
addr.c:1033: error: 'AF_CAN' undeclared here (not in a function)
addr.c:1034: error: 'AF_TIPC' undeclared here (not in a function)
addr.c:1036: error: 'AF_IUCV' undeclared here (not in a function)
addr.c:1037: error: 'AF_RXRPC' undeclared here (not in a function)
addr.c:1038: error: 'AF_ISDN' undeclared here (not in a function)
addr.c:1039: error: 'AF_PHONET' undeclared here (not in a function)
make[2]: *** [addr.lo] Error 1
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-09 01:07:19 +01:00
Thomas Graf
18e593cd4e
Merge pull request #50 from olafhering/olh_memset__nlmsg_alloc
...
Remove extra memset from __nlmsg_alloc
2013-11-08 15:47:06 -08:00
Olaf Hering
2d20d097e7
Remove extra memset from __nlmsg_alloc
...
A few lines above nm->nm_nlh is already allocated with calloc, the
allocated memory has at least sizeof(struct nlmsghdr).
Signed-off-by: Olaf Hering <olaf@aepfle.de>
2013-11-08 17:15:16 +01:00
Thomas Graf
2ae5298408
python: Include all files in distribution
...
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-06 10:28:37 +01:00
Cong Wang
678753ba84
factor out rtnl_link_info_parse()
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-06 09:55:04 +01:00
Cong Wang
760bfabad8
add link netns support
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-06 09:55:03 +01:00
Cong Wang
4263106728
add veth link support
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-06 09:55:02 +01:00
Cong Wang
1f3511c1d1
factor out rtnl_link_fill_info()
...
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-11-06 09:55:01 +01:00