]> granicus.if.org Git - libnl/log
libnl
13 years agoProvide nl_object_dump_buf() to easily dump to buffers
Thomas Graf [Sun, 10 Apr 2011 08:22:01 +0000 (10:22 +0200)]
Provide nl_object_dump_buf() to easily dump to buffers

13 years agoInitialize dump buffer in case caller missed it
Thomas Graf [Sun, 10 Apr 2011 08:18:04 +0000 (10:18 +0200)]
Initialize dump buffer in case caller missed it

(Set an end to all the bug reports of applications failing
to do so.)

13 years agoProvide TC_HANDLE(maj, min) macro to generate tc handles
Thomas Graf [Fri, 1 Apr 2011 14:25:57 +0000 (16:25 +0200)]
Provide TC_HANDLE(maj, min) macro to generate tc handles

13 years agoMove to asciidoc
Thomas Graf [Thu, 31 Mar 2011 12:25:57 +0000 (14:25 +0200)]
Move to asciidoc

The core library documentation has been converted to use asciidoc. It
provides better flexibility in creating documentation such as tables
and more powerful formatting rules.

The doxygen based API reference remains and three scripts have been
added to:
 - gen-tags.sh: extract tag information from doxygen reference
 - tags2dict.sh: generate a name=link dictionary file
 - doxygen-link.py: replace all references in the asciidoc documentation
                    refering to API functions, struct, etc. with a link
    into the doxygen API reference.

'make gendoc' continue to generate all documentation.

The following tools are required to generate documentation:
 - asciidoc
 - mscgen
 - asciidoc mscgen plugin
 - pygments
 - xmlstarlet

13 years agotrafic class/classifer API improvements and documentation
Thomas Graf [Tue, 29 Mar 2011 10:41:59 +0000 (12:41 +0200)]
trafic class/classifer API improvements and documentation

- removed dead functions in header files
- deprecated rtnl_class_foreach_*() functions due to their missing
  handling possibility of OOM situations
- improved API documentation

13 years agoQdisc API improvements and documentation
Thomas Graf [Fri, 25 Mar 2011 17:13:19 +0000 (18:13 +0100)]
Qdisc API improvements and documentation

Deprecated the functions rtnl_qdisc_change() and
rtnl_qdisc_build_change_request() for their lack of being able to
specify flags. The new functions rtnl_qdisc_update() and
rtnl_qdisc_build_update_request() may be used instead. The old
functions are still available though. However, rtnl_qdisc_update()
no longer implies NLM_F_REPLACE, it has to specified implicitely
to allow updating a qdisc without risking to replace another qdisc.

Included detailed documentation of qdisc addition/update/deletion.

Introduced APPBUG() macro to let application developer know of
API abuse.

13 years agoAdd nl_send_sync()
Thomas Graf [Fri, 25 Mar 2011 17:11:52 +0000 (18:11 +0100)]
Add nl_send_sync()

Function which sends message using nl_send_auto(), frees the message and
waits for ACK/error message (if auto-ack is not disabled).

13 years agocorrectly handle the object not found case
Nicolas Sitbon [Fri, 25 Mar 2011 14:07:23 +0000 (15:07 +0100)]
correctly handle the object not found case

Removing non existent route (both ipv4 and ipv6) using
rtnl_route_delete return NLE_FAILURE generic error code. After
investigation, it seems the linux kernel return -ESRCH in that case
(see http://lxr.linux.no/linux+v2.6.38/net/ipv6/route.c#L1367). Same
behaviour apply for removing non existent address. The function
nl_syserr2nlerr (lib/error.c) which is responsible for translating
from kernel error to libnl error doesn't handle ESRCH.

13 years agoDeprecate rtnl_qdisc_foreach_child() and rtnl_qdisc_foreach_cls()
Thomas Graf [Thu, 24 Mar 2011 21:50:11 +0000 (22:50 +0100)]
Deprecate rtnl_qdisc_foreach_child() and rtnl_qdisc_foreach_cls()

Their usage is not completely safe, it is not possible to handle
the out of memory situation of the allocate filter. It is very
unlikely for this to cause any problem though.

The functions are still accessible but gcc will warn about their
deprecation.

13 years agoAllow NLSYSCONFDIR environment variable to overwrite built-in sysconfdir
Thomas Graf [Thu, 24 Mar 2011 20:14:52 +0000 (21:14 +0100)]
Allow NLSYSCONFDIR environment variable to overwrite built-in sysconfdir

13 years agoCleanup <netlink/route/qdisc.h>
Thomas Graf [Thu, 24 Mar 2011 19:57:43 +0000 (20:57 +0100)]
Cleanup <netlink/route/qdisc.h>
- remove dead prototypes
- reformat

13 years agoCheck if all mandatory attributes are present in rtnl_tc_msg_build()
Thomas Graf [Thu, 24 Mar 2011 16:00:38 +0000 (17:00 +0100)]
Check if all mandatory attributes are present in rtnl_tc_msg_build()

TCA_ATTR_IFINDEX | TCA_ATTR_PARENT | TCA_ATTR_KIND

13 years agoAdd NLE_NODEV error
Thomas Graf [Thu, 24 Mar 2011 15:56:10 +0000 (16:56 +0100)]
Add NLE_NODEV error

13 years agoSet default MTU to 1500
Thomas Graf [Thu, 24 Mar 2011 11:59:57 +0000 (12:59 +0100)]
Set default MTU to 1500

13 years agoFix "make distcheck".
Thierry Reding [Wed, 23 Mar 2011 14:57:52 +0000 (15:57 +0100)]
Fix "make distcheck".

This commit adds some missing files (some header files, the files below
/etc and the bison/flex files) to the distribution tarball to ensure
that libnl can be built from the tarballs created using "make dist".

It also adds some incantations to properly generate the flex and bison
output since the generated output is no longer shipped in the tarball.

13 years agoFix out-of-tree build.
Thierry Reding [Fri, 14 Jan 2011 10:38:05 +0000 (11:38 +0100)]
Fix out-of-tree build.

This patch fixes out-of-tree build, that is, when building with
$builddir != $srcdir. In such a case, some generated header files are
not found because they live in a different tree and can be fixed by
adding the directories to the compiler's include search path.

13 years agoOmit empty nested attributes
Thomas Graf [Wed, 23 Mar 2011 12:39:18 +0000 (13:39 +0100)]
Omit empty nested attributes

Check for empty nested attributes in nla_nest_end() and omit the
attribute alltogether if is is the case.

13 years agoadd missing nl_cache_search in cache.h
Daniel Walter [Tue, 22 Mar 2011 09:53:51 +0000 (10:53 +0100)]
add missing nl_cache_search in cache.h

fix missing declaration of nl_cache_search

13 years agoadd missing checks for ROUTE_ATTR_MULTIPATH
Daniel Walter [Tue, 22 Mar 2011 09:45:41 +0000 (10:45 +0100)]
add missing checks for ROUTE_ATTR_MULTIPATH

attached patch adds missing checks for ROUTE_ATTR_MULTIPATH
when dealing with multipath routing.

Affected functions

rtnl_route_remove_nexthop
rtnl_route_get_nexthops
rtnl_route_get_nnexthops

13 years agoDocumentation updates
Thomas Graf [Mon, 21 Mar 2011 23:40:26 +0000 (00:40 +0100)]
Documentation updates

Mostly killing doxygen warnings, some doc updates to caching

13 years agolibnl-3.0 libnl3_0
Thomas Graf [Mon, 21 Mar 2011 16:03:01 +0000 (17:03 +0100)]
libnl-3.0

13 years agofix module parent references
Thomas Graf [Mon, 21 Mar 2011 15:54:37 +0000 (16:54 +0100)]
fix module parent references

13 years agorename sch -> qdisc
Thomas Graf [Mon, 21 Mar 2011 15:47:42 +0000 (16:47 +0100)]
rename sch -> qdisc

13 years agoUnified TC API
Thomas Graf [Mon, 21 Mar 2011 14:51:52 +0000 (15:51 +0100)]
Unified TC API

Finally got rid of all the qdisc/class/cls code duplication in
the tc module API. The API takes care of allocation/freeing the
tc object specific data.

I hope I got it right this time.

13 years agoprovide function to retrieve htb rate
Thomas Graf [Thu, 17 Mar 2011 16:31:08 +0000 (17:31 +0100)]
provide function to retrieve htb rate

13 years agoHold reference to obj while calling callback of cache iterator
Thomas Graf [Thu, 17 Mar 2011 16:30:32 +0000 (17:30 +0100)]
Hold reference to obj while calling callback of cache iterator

13 years agoPrint debugging info while iterating a cache based on a filter
Thomas Graf [Thu, 17 Mar 2011 15:40:39 +0000 (16:40 +0100)]
Print debugging info while iterating a cache based on a filter

13 years agoFix off-by-one when reading IFLA_INET6_CONF and IFLA_INET6_STATS
Thomas Graf [Thu, 17 Mar 2011 15:11:10 +0000 (16:11 +0100)]
Fix off-by-one when reading IFLA_INET6_CONF and IFLA_INET6_STATS

13 years ago__nlmsg_alloc(): Guarantee minimal message size of at least the header
Thomas Graf [Thu, 17 Mar 2011 15:03:11 +0000 (16:03 +0100)]
__nlmsg_alloc(): Guarantee minimal message size of at least the header

13 years agoMake struct nl_object public, NLHDR_COMMON has been public anyway
Thomas Graf [Thu, 17 Mar 2011 13:44:56 +0000 (14:44 +0100)]
Make struct nl_object public, NLHDR_COMMON has been public anyway

13 years agoAdd missing argument in rtnl_link_change example
Miguel Di Ciurcio Filho [Wed, 23 Feb 2011 14:13:12 +0000 (11:13 -0300)]
Add missing argument in rtnl_link_change example

Signed-off-by: Miguel Di Ciurcio Filho <miguel.filho@gmail.com>
13 years agoProvide numeric version defines
Thomas Graf [Wed, 16 Mar 2011 12:46:41 +0000 (13:46 +0100)]
Provide numeric version defines

13 years agoallowing silent rules in build
Reuben Hawkins [Fri, 18 Feb 2011 05:28:50 +0000 (21:28 -0800)]
allowing silent rules in build

13 years agoFix function nfnl_ct_del name
Laurent Defert [Thu, 20 Jan 2011 10:51:36 +0000 (11:51 +0100)]
Fix function nfnl_ct_del name

This function is named nfnl_nl_del in lib/netfilter/ct.c, while it was
declared nfnl_ct_delete in the header.

13 years agoInclude <linux/pkt_cls.h> and <linux/pkt_sched.h> in <netlink/route/tc.h> for convenience
Thomas Graf [Wed, 16 Mar 2011 11:59:31 +0000 (12:59 +0100)]
Include <linux/pkt_cls.h> and <linux/pkt_sched.h> in <netlink/route/tc.h> for convenience

13 years agoprefix ipv6 link statistics identifiers with IP6
Thomas Graf [Wed, 16 Mar 2011 11:55:19 +0000 (12:55 +0100)]
prefix ipv6 link statistics identifiers with IP6

13 years agouse linux/netlink.h instead of netlink/netlink-kernel.h
Thomas Graf [Wed, 16 Mar 2011 11:53:14 +0000 (12:53 +0100)]
use linux/netlink.h instead of netlink/netlink-kernel.h

14 years agoTons of documentation
Thomas Graf [Sat, 27 Nov 2010 09:18:07 +0000 (10:18 +0100)]
Tons of documentation

14 years agoaddr: hide nl_addr_destroy()
Thomas Graf [Fri, 26 Nov 2010 15:32:10 +0000 (16:32 +0100)]
addr: hide nl_addr_destroy()

everyone should use nl_addr_put()

14 years agorename NL_AUTO_PID to NL_AUTO_PORT
Thomas Graf [Tue, 23 Nov 2010 12:31:39 +0000 (13:31 +0100)]
rename NL_AUTO_PID to NL_AUTO_PORT

Old name is kept for compatibility.

14 years agoRename nlmsg_for_each_msg() to nlmsg_for_each()
Thomas Graf [Tue, 23 Nov 2010 12:29:45 +0000 (13:29 +0100)]
Rename nlmsg_for_each_msg() to nlmsg_for_each()

Also put remaining variable on local stack instead of requiring the user
to supply it. Old interface is kept for compatibility.

14 years agonl_recv(): Zero out sockaddr in case the caller forgot
Thomas Graf [Mon, 22 Nov 2010 13:19:40 +0000 (14:19 +0100)]
nl_recv(): Zero out sockaddr in case the caller forgot

14 years agonl_recv(): Make passing creds pointer optional
Thomas Graf [Mon, 22 Nov 2010 13:18:59 +0000 (14:18 +0100)]
nl_recv(): Make passing creds pointer optional

14 years agonl: rename nlmsg_msg_size() to nlmsg_size(), nlmsg_len() -> nlmsg_datalen()
Thomas Graf [Mon, 22 Nov 2010 12:13:04 +0000 (13:13 +0100)]
nl: rename nlmsg_msg_size() to nlmsg_size(), nlmsg_len() -> nlmsg_datalen()

The old symbols are left around for compatibility.

14 years agoDocumentation updates
Thomas Graf [Fri, 19 Nov 2010 01:25:37 +0000 (02:25 +0100)]
Documentation updates
 - moved documentation from lib/doc.c to doc/src/
 - splitted pages into separate files
 - worked over core sections, explaining the receiving and sending
   behaviour in much more details including the the available
   mechanisms to customize the behaviour
 - updated the html stylesheet file for increased readability, probably
   needs some doxygen patching to achieve what I am looking for.
 - enabled call graphs, not expanded by default

14 years agoInherit return code of NL_CB_MSG_OUT in nl_sendmsg()
Thomas Graf [Thu, 18 Nov 2010 13:16:33 +0000 (14:16 +0100)]
Inherit return code of NL_CB_MSG_OUT in nl_sendmsg()

If NL_CB_MSG_OUT() returns anything != NL_OK, return that value
to let any caller of nl_sendmsg() know that the message has not
been sent.

14 years agorename nl_send_auto_complete() -> nl_send_auto(), nl_auto_complete -> nl_complete_msg()
Thomas Graf [Thu, 18 Nov 2010 13:13:49 +0000 (14:13 +0100)]
rename nl_send_auto_complete() -> nl_send_auto(), nl_auto_complete -> nl_complete_msg()

Old symbols left to maintain backwards compatibility

14 years agoonly perform automatic sequence checking if auto-ack mode is enabled
Thomas Graf [Thu, 18 Nov 2010 11:51:20 +0000 (12:51 +0100)]
only perform automatic sequence checking if auto-ack mode is enabled

14 years agoDon't build doc.c, there is no real code in it
Thomas Graf [Thu, 18 Nov 2010 11:47:40 +0000 (12:47 +0100)]
Don't build doc.c, there is no real code in it

14 years agosocket: constify interface
Thomas Graf [Thu, 18 Nov 2010 11:47:16 +0000 (12:47 +0100)]
socket: constify interface

14 years agoconstify struct trans_tbl
Thomas Graf [Wed, 17 Nov 2010 15:09:08 +0000 (16:09 +0100)]
constify struct trans_tbl

14 years agolink/inet6: pretty printing
Thomas Graf [Wed, 17 Nov 2010 14:14:08 +0000 (15:14 +0100)]
link/inet6: pretty printing

14 years agoNew function nl_size2str()
Thomas Graf [Wed, 17 Nov 2010 14:13:33 +0000 (15:13 +0100)]
New function nl_size2str()

14 years agoRename nl_get_hz() to nl_get_user_hz() to indicate it's not the in-kernel HZ value
Thomas Graf [Wed, 17 Nov 2010 10:55:42 +0000 (11:55 +0100)]
Rename nl_get_hz() to nl_get_user_hz() to indicate it's not the in-kernel HZ value

14 years agosfq: perturb period is in seconds, not jiffies
Thomas Graf [Wed, 17 Nov 2010 10:55:03 +0000 (11:55 +0100)]
sfq: perturb period is in seconds, not jiffies

14 years agolink/inet: pretty printing, make output more readable
Thomas Graf [Tue, 16 Nov 2010 23:06:34 +0000 (00:06 +0100)]
link/inet: pretty printing, make output more readable

14 years agoupdate Doxyfile to latest version
Thomas Graf [Tue, 16 Nov 2010 14:28:16 +0000 (15:28 +0100)]
update Doxyfile to latest version

14 years agoMake syntax of nl-link-list consistent and install it
Thomas Graf [Tue, 16 Nov 2010 14:08:36 +0000 (15:08 +0100)]
Make syntax of nl-link-list consistent and install it

14 years agolink/inet: documentation: add examples
Thomas Graf [Tue, 16 Nov 2010 14:07:27 +0000 (15:07 +0100)]
link/inet: documentation: add examples

14 years agolink: define RTM_SETLINK to allow pretty printing
Thomas Graf [Tue, 16 Nov 2010 12:54:54 +0000 (13:54 +0100)]
link: define RTM_SETLINK to allow pretty printing

14 years agolink: Add missing IFLA_AF_SPEC container attribute
Thomas Graf [Tue, 16 Nov 2010 12:54:15 +0000 (13:54 +0100)]
link: Add missing IFLA_AF_SPEC container attribute

14 years agolink/inet: Fix array access
Thomas Graf [Tue, 16 Nov 2010 12:47:41 +0000 (13:47 +0100)]
link/inet: Fix array access

14 years agolink: Fix typo, use rtnl_link_af_alloc() to make sure data buffer is allocated
Thomas Graf [Tue, 16 Nov 2010 12:46:49 +0000 (13:46 +0100)]
link: Fix typo, use rtnl_link_af_alloc() to make sure data buffer is allocated

14 years agolink: AF_INET link module
Thomas Graf [Tue, 16 Nov 2010 11:41:43 +0000 (12:41 +0100)]
link: AF_INET link module

Note: The code for this is not upstream yet.

Extends the link api to allow address family modules to fill a link
message and implements a AF_INET address family link module which
uses the new interface.

14 years agolink: Support for IFLA_AF_SPEC
Thomas Graf [Sat, 13 Nov 2010 00:38:13 +0000 (01:38 +0100)]
link: Support for IFLA_AF_SPEC

This feature isn't upstream yet. It's required to test a patch in
my local tree.

Makes the link parser understand IFLA_AF_SPEC and call the address
family specific parser.

14 years agolink: Add support for IPv6 specific link data
Thomas Graf [Thu, 11 Nov 2010 22:15:28 +0000 (23:15 +0100)]
link: Add support for IPv6 specific link data
 - parses IFLA_PROTINFO
 - dumps flags, cacheinfo, devconf and all statistics

14 years agoAdd support for per interface ICMPv6 statistics
Thomas Graf [Thu, 11 Nov 2010 22:14:57 +0000 (23:14 +0100)]
Add support for per interface ICMPv6 statistics

14 years agoAdd local copies of linux/ipv6.h and linux/snmp.h
Thomas Graf [Thu, 11 Nov 2010 21:36:48 +0000 (22:36 +0100)]
Add local copies of linux/ipv6.h and linux/snmp.h

14 years agoAdd all libraries for libtool to improve linkage
Gery Kahn [Thu, 11 Nov 2010 21:21:18 +0000 (23:21 +0200)]
Add all libraries for libtool to improve linkage

This will fix finding libs while link, by adding them to LDFLAGS

[It's no ideal but it's less of a mess than what we have now. -tgraf]

Signed-off-by: Gery Kahn <geryk@ti.com>
14 years agoExtend rtnl_link_alloc_cache() to support address families
Thomas Graf [Thu, 11 Nov 2010 21:26:11 +0000 (22:26 +0100)]
Extend rtnl_link_alloc_cache() to support address families

Adds a family argument which allows to request link dumps for a certain
address family. This allows to f.e. dump ipv6 specific statistics and data.

nl-link-list --family inet6

14 years agoMake nl_str2af return a negative value if parsing fails
Thomas Graf [Thu, 11 Nov 2010 21:25:32 +0000 (22:25 +0100)]
Make nl_str2af return a negative value if parsing fails

14 years agolink/api: Improve API documentation.
Thomas Graf [Thu, 11 Nov 2010 15:38:53 +0000 (16:38 +0100)]
link/api: Improve API documentation.

14 years agolink/api: Convert link info ops to use nl_list_head
Thomas Graf [Thu, 11 Nov 2010 15:18:53 +0000 (16:18 +0100)]
link/api: Convert link info ops to use nl_list_head

rtnl_link_info_ops_lookup() now returns a pointer with refcnt increment,
you must return it using rtnl_link_info_ops_put()

14 years agolink: Support for AF_BRIDGE address family
Thomas Graf [Thu, 11 Nov 2010 15:02:48 +0000 (16:02 +0100)]
link: Support for AF_BRIDGE address family

Supports parsing of IFLA_PROTINFO returned when dumping with PF_BRIDGE

14 years agolink/api: Check for null pointer in rtnl_link_af_ops_put()
Thomas Graf [Thu, 11 Nov 2010 15:02:02 +0000 (16:02 +0100)]
link/api: Check for null pointer in rtnl_link_af_ops_put()

14 years agolink: API for address family specific link data
Thomas Graf [Thu, 11 Nov 2010 14:50:49 +0000 (15:50 +0100)]
link: API for address family specific link data

Introduces a new API to handle address familiy specific link data such as
IFLA_PROTINFO. It provides entry hooks for parsing IFLA_PROTINFO attributes
and allows to include the parsed data when a link object is dumped.

14 years agolink: Support IFLA_NUM_VF attribute
Thomas Graf [Thu, 11 Nov 2010 13:11:32 +0000 (14:11 +0100)]
link: Support IFLA_NUM_VF attribute
- parses attribute if available
- provides API to access value
    rtnl_link_get_num_vf(link, num_vf)

14 years agolink: Support IFLA_IFALIAS attribute
Thomas Graf [Thu, 11 Nov 2010 12:57:10 +0000 (13:57 +0100)]
link: Support IFLA_IFALIAS attribute

- parse IFLA_IFALIAS if available
- provides API to access/change ifalias
     rtnl_link_get_ifalias(link)
     rtnl_link_set_ifalias(link, alias)
- extends nl-link-set to test functionality

14 years agopktloc: support to specify a shift operator for packet locations
Thomas GraF [Thu, 4 Nov 2010 19:01:36 +0000 (20:01 +0100)]
pktloc: support to specify a shift operator for packet locations

no users yet though.

14 years agoCorrectly state the process of sending a netlink message. A message
Thomas GraF [Thu, 4 Nov 2010 18:35:57 +0000 (19:35 +0100)]
Correctly state the process of sending a netlink message. A message
passes through nl_send_iovec() before hitting nl_sendmsg()

14 years agonl-qdisc-delete: Do not attempt to delete default qdiscs
Thomas GraF [Wed, 3 Nov 2010 20:41:24 +0000 (21:41 +0100)]
nl-qdisc-delete: Do not attempt to delete default qdiscs

14 years agoematch/meta: id definitions
Thomas Graf [Wed, 3 Nov 2010 00:08:33 +0000 (01:08 +0100)]
ematch/meta: id definitions

14 years agonl-classid-lookup: Added --raw option to print classid without pretty printing it
Thomas Graf [Mon, 1 Nov 2010 14:20:43 +0000 (15:20 +0100)]
nl-classid-lookup: Added --raw option to print classid without pretty printing it

14 years agonl-qdisc-list: --recursive - print tc objects recursively
Thomas Graf [Mon, 1 Nov 2010 12:41:57 +0000 (13:41 +0100)]
nl-qdisc-list: --recursive - print tc objects recursively

14 years agoCorrectly parse and generate classids
Thomas Graf [Mon, 1 Nov 2010 12:17:19 +0000 (13:17 +0100)]
Correctly parse and generate classids

Make sure to parse strings starting with a hex represention letter
but not representing a valid number as tc names.

Fix typo while generating classid.

14 years agoclassid auto generation if provided tc name does not exist
Thomas Graf [Mon, 1 Nov 2010 07:17:40 +0000 (08:17 +0100)]
classid auto generation if provided tc name does not exist

Manually editing etc/libnl/classid before adding tc objects is a pain.
This patch adds code to attempt auto generating a unique tc id which
will then be assigned to the provided name and added to the classid
file.

This will make the following commands work with prior definitions of
the names "top" and "test"
sudo sbin/nl-qdisc-add --dev eth0 --parent root --id top htb
sudo sbin/nl-class-add --dev eth0 --parent top --id test htb --rate 100mbit

It will generate the following ids automatically:
4001: top
4001:1 test

14 years agoSupport for meta match
Thomas Graf [Sun, 31 Oct 2010 22:13:01 +0000 (23:13 +0100)]
Support for meta match

Syntax:
meta(pktlen > 768)

14 years agotext ematch support
Thomas Graf [Fri, 29 Oct 2010 19:10:02 +0000 (21:10 +0200)]
text ematch support

14 years agoattr: Add padding if nested data does not end at an alignment boundry
Thomas Graf [Fri, 29 Oct 2010 16:40:48 +0000 (18:40 +0200)]
attr: Add padding if nested data does not end at an alignment boundry

This could happen if a user put an unaligned amount of data inside
an attribute with nlmsg_append().

14 years agoImproved debugging messages while constructing messages/attributes
Thomas Graf [Fri, 29 Oct 2010 16:34:27 +0000 (18:34 +0200)]
Improved debugging messages while constructing messages/attributes

14 years agorouting rules: adapt to unified routing rules
Thomas Graf [Fri, 29 Oct 2010 10:48:46 +0000 (12:48 +0200)]
routing rules: adapt to unified routing rules

- Use FRA_ definitions
- Removed obsoleted fields
- Added fwmask and goto support

14 years agoRevert "routing rules: mark support"
Thomas Graf [Fri, 29 Oct 2010 09:52:22 +0000 (11:52 +0200)]
Revert "routing rules: mark support"

This reverts commit ee88c71d16a6b777c916275401a971eea78871d6.

14 years agoRevert "Include RTA_MARK in routing rule messages"
Thomas Graf [Fri, 29 Oct 2010 09:52:08 +0000 (11:52 +0200)]
Revert "Include RTA_MARK in routing rule messages"

This reverts commit 6862c6592ad598dde0d827039b30df1a947822d1.

14 years agoSupport RT_TABLE_COMPAT
Thomas Graf [Fri, 29 Oct 2010 00:06:14 +0000 (02:06 +0200)]
Support RT_TABLE_COMPAT

14 years agoSupport neighbour flag NTF_USE
Thomas Graf [Fri, 29 Oct 2010 00:00:53 +0000 (02:00 +0200)]
Support neighbour flag NTF_USE

14 years agoSupport for 64bit link counters IFLA_STATS64
Thomas Graf [Thu, 28 Oct 2010 23:58:27 +0000 (01:58 +0200)]
Support for 64bit link counters IFLA_STATS64

14 years agoUpdated arp and ethernet codes
Thomas Graf [Thu, 28 Oct 2010 23:48:13 +0000 (01:48 +0200)]
Updated arp and ethernet codes

14 years agoInclude RTA_MARK in routing rule messages
Thomas Graf [Thu, 28 Oct 2010 23:38:10 +0000 (01:38 +0200)]
Include RTA_MARK in routing rule messages

14 years agorouting rules: mark support
Thomas Graf [Thu, 28 Oct 2010 23:34:15 +0000 (01:34 +0200)]
routing rules: mark support

Obsolete RTA_PROTOINFO code and parse RTA_MARK

rtnl_rule_set_mark(rule, mark)
rtnl_rule_get_mark(rule)

now access the mark as in firewall mark

14 years agosrc/nf-queue: revert nonsensical change
Patrick McHardy [Mon, 25 Oct 2010 15:32:23 +0000 (17:32 +0200)]
src/nf-queue: revert nonsensical change

The only part of commit d378220c (src/nf-queue.c: cleanup and improve
performance of test program for NF_QUEUE) that actually makes sense is
the increase in receive buffer size. Issuing verdicts for IDs not delivered
to userspace is a wasted effort since the kernel drops packets itself when
netlink message delivery fails. This would actually have been noticed
by a return value of -ENOENT if the result of nfnl_queue_msg_send_verdict()
would have been checked.

Signed-off-by: Patrick McHardy <kaber@trash.net>