summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* dsmark: Add missing declarations for rtnl_class_dsmark_(get|set)_bitmask()Thomas Graf2011-11-251-3/+3
| | | | | | | The existing declarations refered to non-existing functions so removing them is safe. Signed-off-by: Thomas Graf <tgraf@redhat.com>
* link: allow to add/get linkinfo of unknown typeJiri Pirko2011-11-111-0/+1
| | | | | | | | store type kind in rtnl_link independently. That would allow to use this value even if type_ops are not present. This allows for example to create devices of type unknown to libnl. Signed-off-by: Jiri Pirko <jpirko@redhat.com>
* link: generic link enslaving APIThomas Graf2011-11-071-0/+6
| | | | | | Adds rtnl_link_enslave() / rtnl_link_release() providing a genreic link enslaving/release API for use with all link types which use the IFLA_MASTER property.
* cache: event_filter() cache operation to filter notificationsThomas Graf2011-10-211-0/+7
| | | | | Certain notifications need to be filtered out and should not be applied to a cache when a cache is handled by a cache manager.
* Don't install CLI header files when --disable-cli has been configured.Michael Altizer2011-10-101-11/+15
| | | | Signed-off-by: Michael Altizer <xiche@verizon.net>
* Provide micro version in <netlink/version.h>Thomas Graf2011-09-191-0/+1
|
* Bonding: Fix header guard of <netlink/route/link/bonding.h>Thomas Graf2011-09-161-2/+2
| | | | | (Would be a good idea to change the header guard name when c&p an existing header file to create a new one.)
* bonding: Install <netlink/route/link/bonding.h>Thomas Graf2011-09-161-0/+1
|
* bonding: API to create/enslave/releaseThomas Graf2011-09-161-0/+37
| | | | | | | | | | | | | | Although it has been possible to create bonding devices, enslave and release using the regular link API. The added API simplifies usage and hides some of the compatibility logic. F.e. enslave() and release() will both verify that the master assignment has in fact been changed and return -NLE_OPNOTSUPP if it did not. Also the API will make sure to use RTM_NEWLINK or RTM_SETLINK depending on what is availble. Examples are provided in src/ as nl-link-enslave.c and nl-link-release.c
* addr: Add missing header to <netlink/route/addr.h>Thomas Graf2011-09-131-0/+1
| | | | Fixes a gcc warning
* Switch to libtool versioning systemThomas Graf2011-09-131-0/+4
| | | | | | | | | | | | | | | | | | It has been a request that multiple libnl versions should be installabe in parallel. In order to achieve this, the basename of the library was changed to libnl-3 which reflects the 3rd generation of libnl APIs. It also means that release based library versioning is left behind and libtool versioning is used instead. Projects using pkgconfig will automatically link against the new library basename and will not notice a difference. The SO versioning is based on the glib model: current := 100 * minor + micro - revision revision := revision age := age (number of backwards compatible versions)
* Install headers in ${includedir}/libnl3Thomas Graf2011-09-131-1/+3
| | | | | This allows for multiple major versions to be installed in parallel. Pkg-config files are adapted to provide appropriate cflags to find new header locations.
* socket: introduce nl_socket_modify_err_cbJiri Pirko2011-08-311-0/+2
| | | | | | | This function does the same as nl_socket_modify_cb except for error callback Signed-off-by: Jiri Pirko <jpirko@redhat.com>
* Updated link documentationThomas Graf2011-07-281-66/+76
| | | | | | | - API documentation - developer guide - enabled doxygen navbar - fixed css
* include <linux/if.h> from <netlink/route/link.h> to export IFF_* flagsThomas Graf2011-07-251-0/+1
|
* VLAN: rtnl_link_is_vlan() function and API documentationThomas Graf2011-07-211-2/+4
|
* Use 'link type' instead of 'link info type'Thomas Graf2011-07-211-2/+5
| | | | | | The term 'link type' is much more easier to understand than 'link info type' rtnl_link_set/get_info_type() left around for backwards compatibility
* Support for NLM_F_INTRThomas Graf2011-07-143-1/+5
| | | | Check if a dump was interrupted and needs to be redone
* Don't redefine offsetof when already defined by e.g. stddef.hChristian Ruppert2011-06-211-0/+5
|
* HTB: Add support for level and direct pkt stats, complete access functionsThomas Graf2011-06-092-10/+20
| | | | | | | | - Adds support for htb class level and direct packet statistics - Complete all get/set access functions - Complete error handling - Documentation
* Update local copies of include/linuxThomas Graf2011-06-098-149/+165
|
* Add nl_rate2str()Thomas Graf2011-06-091-0/+6
|
* Add rtnl_tc_data_check()Thomas Graf2011-06-091-0/+2
| | | | | Behaves like rtnl_tc_data() but verifies that the traffic control object is of the expected type.
* Provide silent variation of nl_cache_require()Thomas Graf2011-05-111-0/+1
| | | | | Use in addr and tc layer to avoid warnings being printed if no cache is available.
* addr: store link object and provide rtnl_addr_get()Thomas Graf2011-05-032-1/+8
| | | | | | | | stores rtnl_link object in address if cache is availble. Provide access via rtnl_addr_get_link() and rtnl_addr_set_link(). Add rtnl_addr_get() which searches a address cache for an address matching ifindex and local address.
* Add missing declaration of rtnl_tc_get_link()Thomas Graf2011-04-211-0/+1
|
* Expose <netlink/route/link/inet.h>Thomas Graf2011-04-202-1/+2
|
* export rtnl_link_add() and rtnl_link_build_add_request()Thomas Graf2011-04-151-1/+4
|
* Improve rtnl_link_change() behaviourThomas Graf2011-04-131-1/+2
| | | | | | | | | | | | - avoid unncessary name change requests The kernel does not check if the specified IFNAME is different from the current name. It assumes that if IFNAME and ifindex are both specified, a name change is requested. Therefore avoid specyfing IFNAME if ifindex is provided and original and new name are identical. - move link building to own function (to allow link add later on) - error if immutable changes have been made - better documentation
* API to issue direct GET requests to the kernelThomas Graf2011-04-112-0/+12
| | | | | | | | | Provide nl_pickup() to pick up an answer from a netlink request and parse it using the supplied parser. Add rtnl_link_get_kernel() which sends an RTM_GETLINK to the kernel to fetch a single link directly from the kernel. This can be faster than dumping the whole table, especially if lots of links are configured.
* link: Provide rtnl_link_delete() to delete virtual linksThomas Graf2011-04-101-0/+4
| | | | | Takes a link object and extracts ifindex and name to build a deletion request message to delete virtual network links.
* link: Make return and argument type matchThomas Graf2011-04-101-2/+2
|
* Provide nl_cache_set_arg{1,2}() to specify cache argsThomas Graf2011-04-101-0/+2
| | | | | Added based on a RFE. This is required if allocation and (re)filling is to be splitted.
* Provide nl_object_dump_buf() to easily dump to buffersThomas Graf2011-04-101-0/+1
|
* Provide TC_HANDLE(maj, min) macro to generate tc handlesThomas Graf2011-04-011-0/+6
|
* trafic class/classifer API improvements and documentationThomas Graf2011-03-292-30/+35
| | | | | | | - removed dead functions in header files - deprecated rtnl_class_foreach_*() functions due to their missing handling possibility of OOM situations - improved API documentation
* Qdisc API improvements and documentationThomas Graf2011-03-252-11/+27
| | | | | | | | | | | | | | | 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.
* Add nl_send_sync()Thomas Graf2011-03-251-0/+1
| | | | | Function which sends message using nl_send_auto(), frees the message and waits for ACK/error message (if auto-ack is not disabled).
* Deprecate rtnl_qdisc_foreach_child() and rtnl_qdisc_foreach_cls()Thomas Graf2011-03-241-2/+3
| | | | | | | | | 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.
* Allow NLSYSCONFDIR environment variable to overwrite built-in sysconfdirThomas Graf2011-03-241-0/+12
|
* Cleanup <netlink/route/qdisc.h>Thomas Graf2011-03-241-11/+9
| | | | | - remove dead prototypes - reformat
* Add NLE_NODEV errorThomas Graf2011-03-241-1/+2
|
* Fix "make distcheck".Thierry Reding2011-03-231-0/+50
| | | | | | | | | 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.
* add missing nl_cache_search in cache.hDaniel Walter2011-03-221-0/+2
| | | | fix missing declaration of nl_cache_search
* Documentation updatesThomas Graf2011-03-221-0/+24
| | | | Mostly killing doxygen warnings, some doc updates to caching
* rename sch -> qdiscThomas Graf2011-03-2110-9/+9
|
* Unified TC APIThomas Graf2011-03-2118-328/+213
| | | | | | | | 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.
* provide function to retrieve htb rateThomas Graf2011-03-171-0/+1
|
* Make struct nl_object public, NLHDR_COMMON has been public anywayThomas Graf2011-03-172-5/+6
|
* Provide numeric version definesThomas Graf2011-03-161-1/+6
|