summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2014-05-13shared: add ring bufferDavid Herrmann
New "struct ring" object that implements a basic ring buffer for arbitrary byte-streams. A new basic runtime test is also added. This will be needed for our pty helpers for systemd-console and friends.
2014-05-13shared: add ALIGN_POWER2 macroDavid Herrmann
Sounds easy, turns out to be horrible to implement: ALIGN_POWER2 returns the next higher power of 2. clz(0) is undefined, same is true for left-shift-overflows, yey, C rocks!
2014-05-13replace more dup() by F_DUPFD_CLOEXECLennart Poettering
2014-05-13pam_systemd: use F_DUPFD_CLOEXEC when dupping session fdsLennart Poettering
http://lists.freedesktop.org/archives/systemd-devel/2014-May/019034.html
2014-05-13udev: rename netif - properly break lines in kmsgTom Gundersen
Before: 30,997,4553484,-;systemd-udevd[439]: renamed network interface wwan0 to wwp0s20u4i6systemd-udevd[439]: renamed network interface wlan0 to wlp3s0 30,998,1175077801,c;systemd-udevd[2345]: renamed network interface wwan0 to wwp0s20u4i6 After: 30,834,4553484,-;systemd-udevd[439]: renamed network interface wwan0 to wwp0s20u4i6 30,835,4732949,-;systemd-udevd[439]: renamed network interface wlan0 to wlp3s0 30,988,1175077801,-;systemd-udevd[2345]: renamed network interface wwan0 to wwp0s20u4i6
2014-05-12networkd-ipip-tunnel: add support ttlSusant Sahani
Add support for ipip tunnel ttl.
2014-05-12networkd: manager - don't leak kmod contextTom Gundersen
Also, keep the kmod_new internal to networkd-manager.c
2014-05-12networkd: introduce ipip tunnelSusant Sahani
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]
2014-05-12job: always add waiting jobs to run queue during coldplugMichael Marineau
commit 20a83d7bf was not equivalent to the original bug fix proposed by Michal Sekletar <msekleta@redhat.com>. The committed version only added the job to the run queue if the job had a timeout, which most jobs do not have. Just re-ordering the code gets us the intended functionality
2014-05-11networkd: get preexiting addresses when a link is addedTom Gundersen
2014-05-10networkd: listen for address changesTom Gundersen
This is proof-of-concept only, as we only log the changes but don't do anything with it.
2014-05-10rtnl: message - fix check for broadcast messagesTom Gundersen
2014-05-10rtnl: message - read group membership of incoming messagesTom Gundersen
2014-05-10rtnl: message - verify that we read the pending message size from the kernelTom Gundersen
Reuse the auth-checking for both the peek and the real read.
2014-05-10rtnl: message - move code aroundTom Gundersen
No functional change.
2014-05-10rtnl: change from bitmask to enum for rtnl groupsTom Gundersen
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.
2014-05-10networkd: link - redo flag change loggingTom Gundersen
Make the logging less verbose by only printing all the changed flags on one line, at the same time make it more complete by supporting all flags currently supported by the kernel. We still fall back to printing the raw flags in case we get something we do not recognize This may be useful when running on new kernels.
2014-05-10sd-rtnl: message - add support for getting prefixlen from address messagesTom Gundersen
2014-05-10networkd: network - fix leakTom Gundersen
2014-05-10networkd: manager - initialize variablesTom Gundersen
2014-05-10networkd: netdev - rephrase logging message a bitTom Gundersen
Make it fit with what is logged from the link.
2014-05-10networkd: manager - refactor link tracking a bitTom Gundersen
2014-05-10systemctl: return an error code is status failsZbigniew Jędrzejewski-Szmek
This got lost in the refactoring in f74294c1dabb4. Also make sure that the return code corresponds to the *first* failure, not the last. https://lists.fedoraproject.org/pipermail/devel/2014-May/199080.html
2014-05-09networkd: link - don't log errors when missing routes/addresses are droppedTom Gundersen
We were ignoring the wrong errno.
2014-05-09networkd: link - handle links coming back to lifeTom Gundersen
When enslaving devices, we may receieve DELLINK/NEWLINK for the same ifindex, let's not be confused by this.
2014-05-09networkd: reorder bonding and bridgingTom Gundersen
A link should only ever be part of one, but if we accidentally do both, let's do it in the right order so the failure is more obvious in the logs.
2014-05-09sd-dhcp-client: improve logging when stopping clientTom Gundersen
'Requested by user' was confusing, just drop it.
2014-05-09networkd: manager - drop links and netdevs when we receive DELLINKTom Gundersen
2014-05-09networkd: netdev - drop if creation failsTom Gundersen
This ensures that all links waiting to be enslaved are notified that the netdev does not exist.
2014-05-09networkd: link - introduce LINGER state and link_drop()Tom Gundersen
We need the LINGER state in case we still have references to the link after it has been dropped.
2014-05-09networkd: netdev - introduce LINGER state and netdev_drop()Tom Gundersen
We need the LINGER state in case we still have references to the netdev after it has been dropped.
2014-05-09networkd: netdev - cancel all callbacks when freeingTom Gundersen
This notifies the link that the netdev no longer exists.
2014-05-09networkd: link - take refcounts on linksTom Gundersen
We need to take a refcount on the link whenever we expect a callback. The exceptions are the ipv4ll/dhcp clients as their lifetimes are guaranteed to be shorter than that of the link.
2014-05-09networkd: network - do reference counting on netdevsTom Gundersen
2014-05-09networkd: network - merge all netdev parsing into one functionTom Gundersen
2014-05-09networkd: introduce refcounting for Links and NetDevsTom Gundersen
2014-05-09networkd: link - clean up state filesTom Gundersen
Also keep the path to the lease file around rather than regenarating it all the time.
2014-05-08timesyncd: read global operational state from networkdTom Gundersen
2014-05-08sd-network: expose global operational stateTom Gundersen
2014-05-08timesyncd: only run when the system has a carrier on a network interfaceTom Gundersen
As the operational state detection in sd-network is still too primitive, timesyncd will likely try to connect a bit early, so the first attempt will fail.
2014-05-08networkd-wait-online: flush monitor events after processingTom Gundersen
Otherwise the event will trigger immediately again.
2014-05-08networkd-wait-online: fix false positives when checking if a link is managed ↵Tom Gundersen
by networkd
2014-05-08networkd: link - operstate is an enum, not a bitmaskTom Gundersen
2014-05-08core: check the right variable for failed open()Łukasz Stelmach
2014-05-07doc: corrections to words and formsJan Engelhardt
This patch exchange words which are inappropriate for a situation, deletes duplicated words, and adds particles where needed.
2014-05-07backlight: handle saved brightness exceeding max brightnessJani Nikula
If too high a brightness value has been saved (e.g. due to kernel mechanism changing from one kernel version to another, or booting the userspace on another system), the brightness update fails and the process exits. Clamp saved brightness between the policy minimum introduced in commit 7b909d7407965c03caaba30daae7aee113627a83 Author: Josh Triplett <josh@joshtriplett.org> Date: Tue Mar 11 21:16:33 2014 -0700 backlight: Avoid restoring brightness to an unreadably dim level and the absolute maximum. https://bugs.freedesktop.org/show_bug.cgi?id=78200
2014-05-07networkd-wait-online: rely purely on sd-network events and drop rtnl hooksTom Gundersen
2014-05-07networkd: link - always maintain link operstate regardless of admin stateTom Gundersen
2014-05-07sd-network: expose both admin and operational state directlyTom Gundersen
Also add a call to check if a link is loopback, as this should commonly be ignored.
2014-05-07timesyncd: shorten log messageKay Sievers