summaryrefslogtreecommitdiffstats
path: root/src/network (follow)
Commit message (Collapse)AuthorAgeFilesLines
* shared: rename condition-util.[ch] to condition.[ch]Lennart Poettering2014-11-062-2/+1
| | | | | Now that we only have one file with condition implementations around, we can drop the -util suffix and simplify things a bit.
* sd-event: rename sd_event_source_set_name() to sd_event_source_get_name()Lennart Poettering2014-11-041-1/+1
| | | | | To mirror the recent name change of the concept for sd_bus objects, follow the same logic for sd_event_source objects, too.
* networkd: add Patch of MTU discovery for IPIP and GRESusant Sahani2014-10-291-0/+16
| | | | Add path of MTU disovery for IPIP and GRE Kind of tunnels
* networkd: add back path of MTU discovery for SITSusant Sahani2014-10-291-0/+8
|
* networkd: network - if no prefixlength is given, try to deduce one from the ↵Tom Gundersen2014-10-271-1/+10
| | | | | | address class In case of a class E or F address, ignore the address.
* networkd: don't stop the dhcp server when link goes downTom Gundersen2014-10-271-9/+0
|
* sd-dhcp-client: support non-Ethernet hardware addressesDan Williams2014-10-112-4/+12
| | | | | | | Like Infiniband. See RFC 4390 section 2.1 for details on DHCP and Infiniband; chaddr is zeroed, hlen is set to 0, and htype is set to ARPHRD_INFINIBAND because IB hardware addresses are 20 bytes in length.
* Do not format USEC_INFINITY as NULLZbigniew Jędrzejewski-Szmek2014-09-291-8/+4
| | | | | | | | | | | systemctl would print 'CPUQuotaPerSecUSec=(null)' for no limit. This does not look right. Since USEC_INFINITY is one of the valid values, format_timespan() could return NULL, and we should wrap every use of it in strna() or similar. But most callers didn't do that, and it seems more robust to return a string ("infinity") that makes sense most of the time, even if in some places the result will not be grammatically correct.
* networkd: dhcp4 - fix unchecked return valueTom Gundersen2014-09-171-8/+11
| | | | Found by coverity. CID #1237529 and #1237528.
* sd-bus: sd_bus_message_get_errno should only return positive errnoThomas Hindoe Paaboel Andersen2014-09-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | sd_bus_message_get_errno can currently return either a number of different poitive errno values (from bus-error-mapping), or a negative EINVAL if passed null as parameter. The check for null parameter was introduced in 40ca29a1370379d43e44c0ed425eecc7218dcbca at the same as the function was renamed from bus_message_to_errno and made public API. Before becoming public the function used to return only negative values. It is weird to have a function return both positive and negative errno and it generally looks like a mistake. The function is guarded by the --enable-kdbus flags so I wonder if we still have time to fix it up? It does not have any documentation yet. However, except for a few details it is just a convenient way to call sd_bus_error_get_errno which is documented to return only positive errno. This patch makes it return only positive errno and fixes up the two calls to the function that tried to cope with both positive and negative values.
* hashmap: introduce hash_ops to make struct Hashmap smallerMichal Schmidt2014-09-154-11/+10
| | | | | | | | | 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.
* networkd: remove vestigial event sourcesDave Reisner2014-09-132-4/+0
| | | | | 187fe1db took advantage of floating events, but didn't remove pointers it made superfluous.
* networkd: allow specification of DHCP route metricAngus Gibson2014-09-084-3/+6
| | | | | | This lets the routing metric for links to be specified per-network, still defaulting to DHCP_ROUTE_METRIC (1024) if unspecified. Hopefully this helps with multiple interfaces configured via DHCP.
* networkctl: show the link file applied to each linkTom Gundersen2014-09-081-2/+5
|
* networkctl: show the network file applied to each linkTom Gundersen2014-09-081-2/+5
|
* sd-network: add _get_network_file apiTom Gundersen2014-09-081-0/+2
|
* networkd: add preferred source to dhcp4 gateway routeEmil Renner Berthing2014-09-083-0/+34
| | | | | | | This makes DHCPv4 and IPv4LL coexist peacefully. [tomegun: apply to both the dhcp routes, use in_addr_is_null() rather than a separate variable to indicate when prefsrc should be applied]
* networkd: netdev - failing to create a netdev is not fatal, just fail that ↵Tom Gundersen2014-09-081-1/+1
| | | | netdev
* networkd: tuntap - return correct error when /dev/net/tun cannot be openedTom Gundersen2014-09-081-6/+4
|
* networkd: link - allow loopback links to be manage, but ignore DHCP/IPv4LLTom Gundersen2014-09-041-14/+58
|
* networkd: link - clarify log message when receiving address for unknown linkTom Gundersen2014-09-041-1/+1
|
* networkd: link - do not manage loopback linksTom Gundersen2014-09-041-0/+6
| | | | Fixes https://bugs.freedesktop.org/show_bug.cgi?id=83134.
* networkd: link - save link flags when the link is addedTom Gundersen2014-09-041-79/+83
| | | | Don't wait for the link to be fully synchronised.
* networkd: move carrier gained/lost handling from link_update_flags() to ↵Tom Gundersen2014-09-042-38/+38
| | | | | | link_update() This allows us also to simplify link_has_carrier() a bit.
* test-network: fix off-by-one error in testTom Gundersen2014-08-311-3/+3
|
* sd-event: name event sources used in librariesTom Gundersen2014-08-281-0/+4
| | | | This should help in debugging failing event sources.
* networkctl: do not mix dns and ntp serversZbigniew Jędrzejewski-Szmek2014-08-281-1/+1
|
* networkd-wait-online: add missing short option 'i' to optstringŁukasz Stelmach2014-08-261-1/+1
|
* notify: send STOPPING=1 from our daemonsLennart Poettering2014-08-211-0/+1
|
* networkd: don't consider deprecated or tentative addresses when determining ↵Tom Gundersen2014-08-192-0/+11
| | | | | | operstate https://bugs.freedesktop.org/show_bug.cgi?id=81287
* networkd: netdev - add missing callback when adding stacked devicesTom Gundersen2014-08-191-10/+30
| | | | | As the comment says, the passed in callback must always be invoked, or the underlying link will hang. This was missed when reworking the code, so add it back in.
* networkd: link - don't enforce ENSLAVING stateTom Gundersen2014-08-191-3/+0
| | | | | | We are only guaranteed to stay in ENSLAVING state whilst enslaving by bridges/bonds, not when adding stacked devices (as then the underlying device can be IFF_UP'ed and configured in parallel), so drop these asserts.
* networkd: fix use-after-freeTom Gundersen2014-08-191-1/+3
| | | | Elements must be removed from the hashtable before they are freed.
* networkd: fix how we generate lists in link_save()Lennart Poettering2014-08-181-20/+29
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=82721
* networkd: warn when ignoring unsupported tuntap optionsTom Gundersen2014-08-181-0/+27
| | | | | The interface for creating tuntap devices should be ported to rtnl so it would support the same settings as other kinds. In the meantime, the best one can do is to drop in a .link file to set the desired options.
* networkctl: use safe_qsort in case no links are presentThomas Hindoe Paaboel Andersen2014-08-161-1/+1
| | | | Unlikely to happen but still...
* networkd: print nice warnings if people configure invalid domain namesLennart Poettering2014-08-151-7/+14
|
* networkd: fix minor memory leakLennart Poettering2014-08-151-0/+1
|
* networkctl: show acquired system domainsLennart Poettering2014-08-151-2/+6
|
* sd-network: add system-wide sd_network_get_domains() APILennart Poettering2014-08-151-29/+44
|
* networkd: always write out locally configured settings first, dhcp-acquired ↵Lennart Poettering2014-08-151-12/+12
| | | | | | | | ones later This is primarily important for the domains list, as we really should prefer the locally configured domain over the dhcp supplied ones when we use it as a search list.
* networkd: remove "*" from domains listLennart Poettering2014-08-151-6/+6
| | | | | Also, simplify things a bit and make sure we don't forget looking at one of the entries.
* networkctl: two OOM fixesLennart Poettering2014-08-151-1/+5
|
* sd-network: add support for wildcard domainsTom Gundersen2014-08-154-0/+17
|
* networkd: add support for Domains= to .network filesTom Gundersen2014-08-154-3/+55
| | | | | This allows the search/routing domanis to be specified per link/network and be passed on to resolved.
* util: never use ether_ntoa(), since it formats with %x, not %02x, which ↵Lennart Poettering2014-08-151-2/+5
| | | | makes ethernet addresses look funny
* networkctl: increase column width for link type to 18, to accomodate for ↵Lennart Poettering2014-08-151-2/+2
| | | | 'ieee80211_radiotap'
* networkd: rename UseDomainName to UseDomainsTom Gundersen2014-08-153-4/+5
| | | | This option will also apply to the search domains, so make it plural.
* networkctl: print local domain name in status outputLennart Poettering2014-08-151-1/+4
|
* networkd: don't respect domainname from DHCP by defaultTom Gundersen2014-08-151-1/+0
| | | | Most routers will send garbage, so make this opt-in only.