summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-rtnl
Commit message (Collapse)AuthorAge
* sd-event: rename sd_event_source_set_name() to sd_event_source_get_name()Lennart Poettering2014-11-04
| | | | | To mirror the recent name change of the concept for sd_bus objects, follow the same logic for sd_event_source objects, too.
* sd-rtnl: add bridge port rtnl attributes.Susant Sahani2014-10-29
| | | | | Add bridge port attributes to sd-rtnl to configure via networkd.
* sd-rtnl: add support to set packet family typeSusant Sahani2014-10-29
| | | | | This patch adds functionality to set family type in the rtnl message for example PF_BRIDGE.
* sd-rtnl: mark nested attributes with the NLA_F_NESTED flagTom Gundersen2014-10-29
| | | | | The kernel mostly does not check this, but let's be consisntent and allways set it anyway. Based on patch from Susant Sahani.
* sd-rtnl: fix reading of nla typeTom Gundersen2014-10-29
| | | | We must filter out the 'network-byteorder' and 'nested' flags.
* sd-rtnl: rtnl-message: remove unneeded linux includesEmil Renner Berthing2014-09-18
|
* hashmap: introduce hash_ops to make struct Hashmap smallerMichal Schmidt2014-09-15
| | | | | | | | | It is redundant to store 'hash' and 'compare' function pointers in struct Hashmap separately. The functions always comprise a pair. Store a single pointer to struct hash_ops instead. systemd keeps hundreds of hashmaps, so this saves a little bit of memory.
* udev: net_setup_link - open ethtool and rtnl connections lazilyTom Gundersen2014-09-09
|
* udev: event - keep one rtnl per worker, rather than per eventTom Gundersen2014-09-09
| | | | | | | | Creating the rtnl context is cheap, but freeing it may not be, due to synchronous close(). Also drop some excessive logging. We now log about the changing ifname exactly once.
* sd-rtnl: don't assign to unused variableTom Gundersen2014-09-01
| | | | Reported by Thomas H.P. Andersen <phomes@gmail.com>.
* Fix a few typos in log messagesRuben Kerkhof2014-08-29
|
* sd-event: name event sources used in librariesTom Gundersen2014-08-28
| | | | This should help in debugging failing event sources.
* sd-rtnl: log if kernel buffer is overrun as we currently can't handle that caseTom Gundersen2014-08-28
|
* util: never use ether_ntoa(), since it formats with %x, not %02x, which ↵Lennart Poettering2014-08-15
| | | | makes ethernet addresses look funny
* networkd: add minimal client tool "networkd" to query network statusLennart Poettering2014-08-12
| | | | | | | In the long run this should become a full fledged client to networkd (but not before networkd learns bus support). For now, just pull interesting data out of networkd, udev, and rtnl and present it to the user, in a simple but useful output.
* time-util: add and use USEC/NSEC_INFINIYKay Sievers2014-07-29
|
* networkd: set route protocolDan Williams2014-07-23
| | | | | | | | | | | | | | | All routes added by networkd are currently set RTPROT_BOOT, which according to the kernel means "Route installed during boot" (rtnetlink.h). But this is not always the case as networkd changes routing after boot too. Since the kernel gives more detailed protocols, use them. With this patch, user-configured static routes now use RTPROT_STATIC (which they are) and DHCP routes use RTPROT_DHCP. There is no define for IPv4LL yet, so those are installed as RTPROT_STATIC (though perhaps RTPROT_RA is better?). [tomegun: fixup src/network/networkd-link.c:972:33: error: too few arguments to function 'route_new_dynamic']
* sd-rtnl: uncomment bond rtnl constantsSusant Sahani2014-07-21
|
* change type for address family to "int"Lennart Poettering2014-07-18
| | | | | | | | Let's settle on a single type for all address family values, even if UNIX is very inconsitent on the precise type otherwise. Given that socket() is the primary entrypoint for the sockets API, and that uses "int", and "int" is relatively simple and generic, we settle on "int" for this.
* sd-rtnl: make string returned by sd_rtnl_message_read_string() constLennart Poettering2014-07-18
|
* test-tables: add new entriesZbigniew Jędrzejewski-Szmek2014-07-16
| | | | | | One missing string found. A few things had to be moved around to make it possible to test them.
* shared: split out in_addr related calls from socket-util.[ch] into its ↵Lennart Poettering2014-07-10
| | | | | | | private in-addr-util.[ch] These are enough calls for a new file, and they are sufficiently different from the sockaddr-related calls, hence let's split this out.
* nss-myhostname: move local address listing logic into shared, so that we can ↵Lennart Poettering2014-07-10
| | | | make use of it from machined
* networkd: netdev - add dummy supportTom Gundersen2014-07-01
|
* socket-util: introduce in_addr_union similar to sockaddr_union and make use ↵Lennart Poettering2014-06-18
| | | | of it everywhere
* sd-rtnl: add support for vxlan rtnl attributesSusant Sahani2014-06-16
| | | | This patch adds vxlan rtnl attributes to sd-rtnl
* networkd: introduce vti tunnelSusant Sahani2014-06-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch enables vti tunnel support. example conf: file : vti.netdev [NetDev] Name=vti-tun Kind=vti MTUBytes=1480 [Tunnel] Local=X.X.X.X Remote=X.X.X.X file: vti.network [Match] Name=em1 [Network] Tunnel=vti-tun TODO: Add more attributes for vti tunnel IFLA_VTI_IKEY IFLA_VTI_OKEY
* networkd: introduce gre tunnelSusant Sahani2014-06-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch enables gre tunnel support. example conf: file : gre.netdev [NetDev] Name=gre-tun Kind=gre MTUBytes=1480 [Tunnel] Local=X.X.X.X Remote=X.X.X.X file: gre.network [Match] Name=em1 [Network] Tunnel=gre-tun TODO: Add more attributes for gre tunnel IFLA_GRE_IFLAGS IFLA_GRE_IFLAGS IFLA_GRE_IKEY IFLA_GRE_OKEY
* networkd: introduce ipip tunnelSusant Sahani2014-05-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch enables basic ipip tunnel support. It works with kernel module ipip example conf: file: ipip.netdev [NetDev] Name=ipip-tun Kind=ipip MTUBytes=1480 [Tunnel] Local=192.168.223.238 Remote=192.169.224.239 TTL=64 file: ipip.network [Match] Name=em1 [Network] Tunnel=ipip-tun [tomegun: - drop unused variable - take ref when enslaving]
* rtnl: message - fix check for broadcast messagesTom Gundersen2014-05-10
|
* rtnl: message - read group membership of incoming messagesTom Gundersen2014-05-10
|
* rtnl: message - verify that we read the pending message size from the kernelTom Gundersen2014-05-10
| | | | Reuse the auth-checking for both the peek and the real read.
* rtnl: message - move code aroundTom Gundersen2014-05-10
| | | | No functional change.
* rtnl: change from bitmask to enum for rtnl groupsTom Gundersen2014-05-10
| | | | | The bitmask is deprecated in the kernel, so move to the new interface. At the moment this does not make a difference for us, but it avoids having to change the API in the future.
* sd-rtnl: message - add support for getting prefixlen from address messagesTom Gundersen2014-05-10
|
* sd-rtnl-message: append - fix uninitialized memoryTom Gundersen2014-05-03
| | | | We were not properly clearing the padding at the front of some containers.
* sd-rtnl: route - allow setting multiple matching routesTom Gundersen2014-05-03
|
* silence warningsThomas Hindoe Paaboel Andersen2014-04-21
|
* sd-rtnl: log when queues are exhaustedTom Gundersen2014-04-20
|
* sd-rtnl: socet_read_message - make sure we only shrink the partial rqueue ↵Tom Gundersen2014-04-19
| | | | when processing multi-part message
* sd-rtnl: message - expose DUMP flag in the apiTom Gundersen2014-04-19
|
* sd-rtnl: add multi-part message testTom Gundersen2014-04-19
|
* sd-rtnl: message - concatenate multi-part messages from different packetsTom Gundersen2014-04-19
|
* sd-rtnl: message - don't put NULL message on rqueueTom Gundersen2014-04-19
| | | | | If nothing interesting was receieved we should not put anything on the queue.
* sd-rtnl: message - make room for all pending messages, not just the firstTom Gundersen2014-04-19
| | | | Also, don't actually read any of the message when peeking, just get its length.
* sd-rtnl: message_addr - allow dumping of messagesTom Gundersen2014-04-14
|
* 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: message_addr - expose a few more gettersTom Gundersen2014-04-14
|
* sd-rtnl: use SO_PASSCREDTom Gundersen2014-04-11
| | | | This unifies the socket handling with other sd-* libraries.