summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-rtnl
Commit message (Collapse)AuthorAge
* sd-rtnl: read_message - don't set group if not neededTom Gundersen2015-03-13
|
* sd-rtnl: process - only apply matches to broadcast messagesTom Gundersen2015-03-13
|
* 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: never set serial to 0Tom Gundersen2015-03-13
| | | | | | | In the unlikely event that we wrap the counter, skip 0 as this is used for broadcasts. Suggested by Richard Maw.
* tree-wide: there is no ENOTSUP on linuxDavid Herrmann2015-03-13
| | | | Replace ENOTSUP by EOPNOTSUPP as this is what linux actually uses.
* networkd: Begin with serial number 1 for netlink requestsRichard Maw2015-03-12
| | | | | | | | | | | | | | | | | | | | | "Notifications are of informal nature and no reply is expected, therefore the sequence number is typically set to 0."[1] If networkd is started soon after recent netlink activity, then there will be messages with sequence number 0 in the buffer. The first thing networkd does is to request a dump of all the links. If it uses sequence number 0 for this, then it may confuse the dump request's response with that of a notification. This will result in it failing to properly enumerate all the links, but more importantly, when it comes to enumerate all the addresses, it will still have the link dump in progress, so the address enumeration will fail with -EBUSY. [1]: http://www.infradead.org/~tgr/libnl/doc/core.html#core_msg_types [tomegun: sequence -> serial]
* sd-rtnl: types - fix check for unsupported typeTom Gundersen2015-02-26
| | | | Spotted by Thomas H.P. Andersen <phomes@gmail.com>
* sd-rtnl: types - don't assert_return in private APITom Gundersen2015-02-26
|
* libsystemd: revert one hunk of duplicate ifdef removalZbigniew Jędrzejewski-Szmek2015-02-23
| | | | | | | | | | | This change exposed a bug in kernel headers: /usr/include/linux/if_bridge.h:184:20: error: field 'ip6' has incomplete type struct in6_addr ip6; ^ /usr/include/linux/if_tunnel.h:76:19: error: field 'prefix' has incomplete type struct in6_addr prefix; ^
* remove unused includesThomas Hindoe Paaboel Andersen2015-02-23
| | | | | | This patch removes includes that are not used. The removals were found with include-what-you-use which checks if any of the symbols from a header is in use.
* Revert "tree-wide: Always use recvmsg with MSG_CMSG_CLOEXEC"Lennart Poettering2015-02-12
| | | | | | | This reverts commit d6d810fbf8071f8510450dbacd1d083f37603656. It's apparently not OK to pass MSG_CMSG_CLOEXEC to recvmsg() of raw sockets.
* tree-wide: Always use recvmsg with MSG_CMSG_CLOEXECCristian Rodríguez2015-02-10
|
* sd-rtnl: fix typesystem for IFLA_AF_SPECTom Gundersen2015-02-09
| | | | Got this one wrong, it is not a union, just a nested container.
* sd-rtnl: add support for IFLA_INET6_*Tom Gundersen2015-02-08
|
* sd-rtnl: extend type system to allow address-family to decide the union membersTom Gundersen2015-02-08
| | | | | | So far we only supported selecting them by sibling attributes. (This stuff is all a bit crazy, but there seems to be no other way...)
* sd-rtnl: don't treat 0-length messages speciallyTom Gundersen2015-02-08
| | | | Still parse the CMSG data, and most importantly make sure we drop the message when peeking.
* sd-rtnl: don't fall over when receiving 0 bytes from the socketTom Gundersen2015-02-06
| | | | | | | causes EOF. Seems like a kernel bug. Ignoring it seems to work be the best we can do for now... See https://bugs.freedesktop.org/show_bug.cgi?id=88397
* sd-rtnl: fix creation of synthetic error repliesTom Gundersen2015-02-06
|
* sd-rtnl: allow sd_rtnl_open_fd() to be used on bound socketsTom Gundersen2015-02-03
|
* networkd: support socket activationTom Gundersen2015-02-02
| | | | | Still keep the non-socket activation code around for starting from the commandline, but will likely drop that too in the future.
* sd-rtnl: introduce sd_rtnl_new_from_netlinkTom Gundersen2015-02-02
|
* sd-rtnl: don't fail event handler when callback failsTom Gundersen2015-01-31
| | | | | | As in sd-bus, simply log at debug level when a callback fails, but don't fail the event handler. Otherwise any error returned by any callback will disable the rtnl event handler. We should only do that on serious internal errors in sd-rtnl that we know cannot be recovered from.
* networkd: Introduce ip6gre and ip6gretapSusant Sahani2015-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces ipv6 gre and gretap. test: ip6gre.netdev: [NetDev] Name=ip6gretap Kind=ip6gretap [Tunnel] Local=2a00:ffde:4567:edde::4987 Remote=2001:473:fece:cafe::5179 ip6gre.network: [Match] Name=eno16777736 [Network] Tunnel=ip6gretap ip link 6: ip6gre@eno16777736: <POINTOPOINT,NOARP> mtu 1448 qdisc noop state DOWN mode DEFAULT group default link/gre6 2a:00:ff:de:45:67:ed:de:00:00:00:00:00:00:49:87 peer 20:01:04:73:fe:ce:ca:fe:00:00:00:00:00:00:51:79
* networkd: Introduce IP6 tunnelSusant Sahani2015-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch enables networkd to create IP6 tunnels example conf: ipip6.netdev: [NetDev] Name=ipip6-tunnel Kind=ip6tnl [Tunnel] Mode=ip4ipv6 Local=2a00:ffde:4567:edde::4987 Remote=2001:473:fece:cafe::5179 ipip6.network [Match] Name=wlan0 [Network] Tunnel=ipip6-tunnel 23: ipip6-tunnel@wlan0: <POINTOPOINT,NOARP> mtu 1452 qdisc noop state DOWN mode DEFAULT group default link/tunnel6 2a00:ffde:4567:edde::4987 peer 2001:473:fece:cafe::5179
* networkd: introduce gretapSusant Sahani2015-01-22
| | | | This patch introdeces gretap to networkd
* Assorted format fixesZbigniew Jędrzejewski-Szmek2015-01-22
| | | | | Types used for pids and uids in various interfaces are unpredictable. Too bad.
* Fix some format strings for enums, they are signedZbigniew Jędrzejewski-Szmek2015-01-22
|
* networkd: netdev - add ipvlan supportTom Gundersen2015-01-19
|
* refcnt: refcnt is unsigned, fix comparisonsTom Gundersen2015-01-13
| | | | This does not make a difference, but the code was confusing.
* nspawn: add new option "--port=" for exposing container ports on the local hostLennart Poettering2015-01-13
| | | | This exposes an IP port on the container as local port using DNAT.
* tree-wide: spelling fixesVeres Lajos2014-12-30
| | | | | | | https://github.com/vlajos/misspell_fixer https://github.com/torstehu/systemd/commit/b6fdeb618cf2f3ce1645b3315f15f482710c7ffa Thanks to Torstein Husebo <torstein@huseboe.net>.
* rtnl: recv_message - don't enforce sender uidTom Gundersen2014-12-29
| | | | | | | All we care about is that the kernel (pid==0) sent the message. Verifying the sender uid seems to break when using userns. Reported by Stéphane Graber.
* sd-rtnl: rtnl_call - don't dispatch wqueue after timeout has passedTom Gundersen2014-12-29
| | | | Only a minor change as the timeout would be hit soon thereafetr at the next loop.
* sd-rtnl: rtnl_poll - fix typoTom Gundersen2014-12-29
| | | | This caused rtnl_poll to always return true immediately in sd_rtnl_call().
* sd-rtnl: recv_message - drop message when peeking failsTom Gundersen2014-12-29
| | | | | Read the message form the socket or we will loop trying to read the same message repeatedly.
* sd-rtnl: recv_message - don't fail on interruptTom Gundersen2014-12-29
| | | | We should just try again instead.
* sd-rtnl: recv_message - log when dropping messageTom Gundersen2014-12-29
| | | | We drop messages received from the wrong uid/pid, log this at debug level.
* networkd: add FDB supportAlin Rauta2014-12-18
|
* sd-rtnl: fix size check in sd_rtnl_message_append_string()Lennart Poettering2014-12-09
|
* networkd: manager - enumerate addresses globally, rather than per-linkTom Gundersen2014-12-08
| | | | The kernel always returns all addresses, rather than only for the given link, so let's only enumerate once.
* sd-rtnl: fix bogus warning about dropping 20 bytes from multi-part messagesTom Gundersen2014-12-08
| | | | Nothing was being dropped, we just failed to account for the NLMSG_DONE.
* sd-rtnl: rename sd_rtnl_message_route_get_{dst,src}_len to *_prefixlenTom Gundersen2014-12-04
| | | | This makes the API more consistent.
* networkd: add support for source routingTom Gundersen2014-12-04
|
* rtnl: order local addresses/gateways by the address itself as last resortLennart Poettering2014-12-04
| | | | | This way we can be sure that the returned list is stable regarding modifications in the kernel.
* rtnl: when querying local addresses and gateways, take address family into ↵Lennart Poettering2014-12-04
| | | | account
* rtnl: make checks for default routes more strictLennart Poettering2014-12-03
| | | | | Also check that the source netmask is 0, not only the destination netmask.
* nss-myhostname: always resolve the host name "gateway" to the local default ↵Lennart Poettering2014-12-03
| | | | | | | | gateway This is useful inside of containers or local networks to intrdouce a stable name of the default gateway host (in case of containers usually the host, in case of LANs usually local router).
* sd-rtnl: route - allow GETROUTE with AF_UNSPECTom Gundersen2014-12-02
|
* sd-rtnl: add sd_rtnl_message_{new_neigh,neigh_get_{family,ifindex}}Tom Gundersen2014-12-02
|
* sd-rtnl: add typesystem for RTM_*NEIGHTom Gundersen2014-12-02
|