summaryrefslogtreecommitdiff
path: root/src/libsystemd-rtnl/sd-rtnl.c
AgeCommit message (Collapse)Author
2013-12-16rtnl: match - only match on one type at a timeTom Gundersen
2013-12-16rtnl: clean up/add assertsTom Gundersen
2013-12-13event: rework sd-event exit logicLennart Poettering
With this change a failing event source handler will not cause the entire event loop to fail. Instead, we just disable the specific event source, log a message at debug level and go on. This also introduces a new concept of "exit code" which can be stored in the event loop and is returned by sd_event_loop(). We also rename "quit" to "exit" everywhere else. Altogether this should make things more robus and keep errors local while still providing a way to return event loop errors in a clear way.
2013-12-04rtnl: add callback supportTom Gundersen
sd_rtnl_add_match allows you to add a callback function for when given types of messages are received.
2013-11-14rtnl: add event loop integrationTom Gundersen
2013-11-14rtnl: add call_async and call_async_cancelTom Gundersen
They work in the same way as the sd-bus equivalents.
2013-11-13rtnl: start adding support for asynchronous messagingTom Gundersen
Similarly to sd-bus, add: sd_rtnl_wait sd_rtnl_process sd_rtnl_send and adapt sd_rtnl_call accordingly.
2013-11-13rtnl: rename rtnl_bus_send_with_reply_and_block() to rtnl_bus_call()Tom Gundersen
Follow the equivalent rename in sd-bus to stay as similar as possible.
2013-11-07rtnl: headers in src/systemd/ may not include internal headersLennart Poettering
Hence including "util.h" from sd-rtnl.h is not OK. Let's minimize our headers we pull in a bit.
2013-10-29rtnl: fix sockaddr confusionTom Gundersen
2013-10-29rtnl: complain if used after forkTom Gundersen
2013-10-29rtnl: introduce default timeoutTom Gundersen
We set it to 10 secs (as we are only communicating with the kernel, it seems we should be able to bail out sooner than sd-bus, which uses 25). When passing timout 0, the default is used, use this in link-config.
2013-10-29rtnl: use _cleanup_ macro moreTom Gundersen
2013-10-29sd-rtnl: minor fixesTom Gundersen
2013-10-27libsystemd-rtnl: add a rtnetlink libraryTom Gundersen
This is intentionally as similar to sd-bus as possible. While it would be simple to export it, the intentions is to keep this internal (at least for the forseeable future). Currently only synchronous communication is implemented