summaryrefslogtreecommitdiff
path: root/src/network
AgeCommit message (Collapse)Author
2014-01-25networkd: improve logging a bitTom Gundersen
Fix/add some structured logging messages, and be uniform about when we WARN and ERR.
2014-01-25networkd: add basic VLAN supportTom Gundersen
2014-01-22sd-rtnl: simplify sd_rtnl_message_addr_new()Tom Gundersen
Split out into sd_rtnl_message_addr_set_{prefixlen,flags,scope}().
2014-01-22networkd: add basic bonding supportTom Gundersen
Refactor bridging support to be generic netdev support and extend it to cover bonding as well.
2014-01-22sd-rtnl: link - allow setting the change maskTom Gundersen
2014-01-19networkd: use 'up'/'down' rather than 'on'/'off'Tom Gundersen
2014-01-18networkd: dhcp - by default ignore the MTUTom Gundersen
2014-01-18sd-dhcp-client: refactor client_{free,new}Tom Gundersen
Make them more simiar to sd_bus and friends. Also factor out the event attachment. In the future, we will likely want to support external main-loops, so this is a first step. For the time being, we are still requiring an sd_event to be attached though.
2014-01-18sd-dhcp-client/networkd: add domainname supportTom Gundersen
2014-01-18networkd: don't hard depend on system busTom Gundersen
We may not have a dbus daemon in the initrd (until we can rely on kdbus). In this case, simply ignore any attempts at using the bus. There is only one user for now, but surely more to come. In order to work reliably in the real root without kdbus, but at the same time don't delay boot when kdbus is in use, order ourselves after dbus.service.
2014-01-18networkd: resolv.conf - reword commentTom Gundersen
Take into account that users may want to use resolvconf(8), or similar. Also, avoid repeated calls to fputs().
2014-01-16networkd: resolv.conf - extend the comment a bitTom Gundersen
2014-01-16sd-dhcp-client: refactor DNS supportTom Gundersen
Rather than keeping an array of pointers to addresses, just keep an array of addresses.
2014-01-16sd-dhcp-client/networkd: add transient hostname supportTom Gundersen
2014-01-16networkd: dhcp - only set the MTU option onceTom Gundersen
Only set MTU request when creating the dhcp client, not every time it is restarted.
2014-01-16networkd: link - only save original MTU when necessaryTom Gundersen
2014-01-16networkd: improve loggingTom Gundersen
2014-01-16sd-dhcp-client/networkd: add interface MTU supportTom Gundersen
2014-01-13networkd: DHCPv4 - allow opting out of using DNS serversTom Gundersen
Setting UseDNS=no will ignore any received DNS servers.
2014-01-12networkd: fix wordingTom Gundersen
2014-01-12networkd: generate resolv.confTom Gundersen
This adds support to generate a basic resolv.conf in /run/systemd/network. This file will not take any effect unless a symlink is created from /etc/resolv.conf. Nameservers received over DHCP takes precedence over statically configured ones. Note: /etc/resolv.conf is severely limited, so in the future we will likely rather provide a much more powerfull nss plugin (or something to that effect), but this should allow current users to function without any loss of functionality.
2014-01-12networkd: bridge - remove redundant stateTom Gundersen
We will not insist on getting the reply from rtnl that the bridge was created before considering the bridge ready, as we will be notified about that via udev. We will listen for the rtnl response however, in case the creation of the bridge failed.
2014-01-12networkd: don't automatically reload config at runtimeTom Gundersen
We don't know if the config will be consistent, so do as systemd itself and only load config when the daemon starts (and possibly, in the future, when explicitly requested).
2014-01-12networkd: improve logging a bitTom Gundersen
2014-01-11network: use GNU-ism to simplify macrosZbigniew Jędrzejewski-Szmek
Thanks David!
2014-01-08networkd: print the received DHCPv4 address and gatewayZbigniew Jędrzejewski-Szmek
It seems that networkd stores in_addr.s_addr contents in reverse order (little-endian, not network order). This is a bit confusing, but sd_rtnl evidently likes this order.
2014-01-08networkd: use structured logging for links and bridgesZbigniew Jędrzejewski-Szmek
2014-01-08No need to canonicalize fixed pathsZbigniew Jędrzejewski-Szmek
2014-01-05networkd: refuse to use .network files with missing Address/Gateway keyTom Gundersen
These keys are mandatory in [Address]/[Route] sections. Otherwise, we hit an assert: ens3: setting addresses Assertion 'address->family == 2 || address->family == 10' failed at /build/amd64-generic/tmp/portage/sys-apps/systemd-9999-r1/work/systemd-9999/src/network/networkd-address.c:137, function address_configure(). Aborting. Reported-by: Alex Polvi <alex.polvi@coreos.com> At the same time make sure Route's Destination and Gateway uses the same address family.
2014-01-03networkd: link hash uses 64, not 32 bit keysTom Gundersen
2014-01-03networkd: print the ifindex of added linksTom Gundersen
This debug information may be useful when comapring to dropped rtnetlink messages.
2014-01-03networkd: improve loggingTom Gundersen
This gives a bit better messages when a link is added twice.
2014-01-03networkd: improve link state change loggingTom Gundersen
2014-01-03networkd: add some debug info about notifications we ignoreTom Gundersen
2014-01-03networkd: link - explicitly set the link to be up if the call to IFF_UP succeedsTom Gundersen
No need to wait for the NEWLINK message to arrive.
2014-01-02networkd: fix memory leak in error pathZbigniew Jędrzejewski-Szmek
2014-01-02networkd: do not deference null pointer in cleanupZbigniew Jędrzejewski-Szmek
2014-01-03networkd: dhcp - avoid null pointer dereferenceTom Gundersen
2014-01-03networkd: add more asserts and ignore all events when link has failedTom Gundersen
2014-01-02networkd: only track state of links we are managingTom Gundersen
If a network is not (yet) set for a link, we do not care about its state (as we anyway don't know what to do with it).
2014-01-02networkd: improve loggingTom Gundersen
Remove redundant messages, add some debugging ones and make wording more uniform.
2014-01-02networkd: fix NULL pointer derefKay Sievers
2014-01-02networkd: fix getting initial stateTom Gundersen
We were requesting the state and then ignoring it...
2014-01-01networkd: add DHCPv4 supportTom Gundersen
This adds basic DHCPv4 support. Link-sense is enabled unconditionally, but the plan is to make that configurable. I tested this in a VM with lots of NICs and over wifi in the various coffee shops I found this Christmas, but more testing would definitely be appreciated.
2014-01-01networkd: distinguish between static and dynamic addresses/routesTom Gundersen
Static addresses/routes are associated with a network. Dynamic addresses/routes are associtade with links (as the corresponding network may be shared by several links).
2014-01-01network: add support for dropping addressTom Gundersen
2013-12-18core,logind,networkd: check for udev device initialization via enumeration ↵Lennart Poettering
matches Instead of checking each device after we got it, check wuth an enumeration filter instead, to make it more efficient.
2013-12-18core,logind,networkd: don't pick up devices from udev before they finished ↵Lennart Poettering
udev initialization Managers shouldn't pick up the devices the manage before udev finished initialization, hence check explicitly for that.
2013-12-17networkd: bridge - fix state machineTom Gundersen
We were entering BRIDGE_STATE_CREATED rather than BRIDGE_STATE_READY.
2013-12-17networkd: link - remove useless statesTom Gundersen
Rework the state-machine a bit.