| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
The existing declarations refered to non-existing functions so removing
them is safe.
Signed-off-by: Thomas Graf <tgraf@redhat.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Certain notifications need to be filtered out and should not be applied to
a cache when a cache is handled by a cache manager.
|
|
|
|
| |
Signed-off-by: Michael Altizer <xiche@verizon.net>
|
| |
|
|
|
|
|
| |
(Would be a good idea to change the header guard name when c&p
an existing header file to create a new one.)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Fixes a gcc warning
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
This function does the same as nl_socket_modify_cb except for error
callback
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
|
|
|
|
|
|
|
| |
- API documentation
- developer guide
- enabled doxygen navbar
- fixed css
|
| |
|
| |
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Check if a dump was interrupted and needs to be redone
|
| |
|
|
|
|
|
|
|
|
| |
- Adds support for htb class level and direct packet
statistics
- Complete all get/set access functions
- Complete error handling
- Documentation
|
| |
|
| |
|
|
|
|
|
| |
Behaves like rtnl_tc_data() but verifies that the traffic control
object is of the expected type.
|
|
|
|
|
| |
Use in addr and tc layer to avoid warnings being printed if no
cache is available.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Takes a link object and extracts ifindex and name to build a deletion request
message to delete virtual network links.
|
| |
|
|
|
|
|
| |
Added based on a RFE. This is required if allocation and
(re)filling is to be splitted.
|
| |
|
| |
|
|
|
|
|
|
|
| |
- removed dead functions in header files
- deprecated rtnl_class_foreach_*() functions due to their missing
handling possibility of OOM situations
- improved API 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.
|
|
|
|
|
| |
Function which sends message using nl_send_auto(), frees the message and
waits for ACK/error message (if auto-ack is not disabled).
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
- remove dead prototypes
- reformat
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
fix missing declaration of nl_cache_search
|
|
|
|
| |
Mostly killing doxygen warnings, some doc updates to caching
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|