summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-rtnl/rtnl-internal.h
Commit message (Collapse)AuthorAge
* Rename more things to elogindAndy Wingo2015-04-19
|
* sd-rtnl: improve detection of broadcast messagesTom Gundersen2015-03-13
| | | | | | Do not rely on nl_pid == 0, but check the groups instead. We currently avoid using nl_pid == 0 for unicast anyway, so this should be redundant, but let's try to be correct.
* sd-rtnl: message - concatenate multi-part messages from different packetsTom Gundersen2014-04-19
|
* sd-rtnl: socket_read - use a read bufferTom Gundersen2014-04-14
| | | | | | Rather than allocating/freeing memory for each message read, keep a global read buffer in the rtnl object. Also, rather than using a fixed size, peek at the pending message header to get the message size and reallocate as necessary.
* sd-rtnl: multi-part message - store as linked-list rather than independent ↵Tom Gundersen2014-04-14
| | | | | | | messages This means the API can stay the same as for single-part messages by simply passing the head message around. Unrefing the head of the linked list unrefs the whole list.
* sd-rtnl: don't drop multi-part messagesTom Gundersen2014-04-10
| | | | We still only return the first message part in callback/synchronous calls.
* sd-rtnl: use GREEDY_REALLOC for message queuesTom Gundersen2014-04-10
|
* sd-rtnl: rework rtnl type systemTom Gundersen2014-03-28
| | | | | | | | | | | | Use a static table with all the typing information, rather than repeated switch statements. This should make it a lot simpler to add new types. We need to keep all the type info to be able to create containers without exposing their implementation details to the users of the library. As a freebee we verify the types of appended/read attributes. The API is extended to nicely deal with unions of container types.
* sd-rtnl: add sd_rtnl_message_enter_container()Tom Gundersen2014-03-24
| | | | | | | | | | | | Extend rta_offset_tb into a stack of offset tables, one for each parent of the current container, and make sd_rtnl_message_{enter,exit}_container() pop/push to this stack. Also make sd_rtnl_message_rewind() parse the top-level container, and use this when reading a message from the socket. This changes the API by dropping the now redundant sd_rtnl_message_read() method.
* sd-rtnl: increase default timeout to match sd-busTom Gundersen2014-03-08
|
* sd-rtnl:introduce table-based lookup and typesafe read() functionsSusant Sahani2014-03-06
| | | | | | | | | This patch introduces new netlink attribute parsing logic which is table based lookup and sd_rtnl_message_read_* methods for reading attributes. By doing this user does not have to loop for the attribute values . Only providing the attribute type it gets the attribute values which is optimized and sd_rtnl_message_read_* methods are simplified.
* sd-rtnl-message: store reference to the bus in the messageTom Gundersen2014-02-18
| | | | This mimics the sd-bus api, as we may need it in the future.
* rtnl: drop "sd_" prefix from cleanup macrosLennart Poettering2014-02-13
| | | | | | | | | The "sd_" prefix is supposed to be used on exported symbols only, and not in the middle of names. Let's drop it from the cleanup macros hence, to make things simpler. The bus cleanup macros don't carry the "sd_" either, so this brings the APIs a bit nearer.
* sd-rtnl: beef up rtnl-util a bitTom Gundersen2014-01-30
|
* sd-rtnl: add support for nested containersTom Gundersen2014-01-24
|
* libsystemd: split up into subdirsTom Gundersen2014-01-21
We still only produce on .so, but let's keep the sources separate to make things a bit less messy.