summaryrefslogtreecommitdiffstats
path: root/src/resolve (follow)
Commit message (Collapse)AuthorAgeFilesLines
* resolved: dns-packet - use unaligned read/write helpersTom Gundersen2014-11-011-12/+6
|
* resolve: make DnsScope::conflict_queue an OrderedHashmapMichal Schmidt2014-10-232-6/+6
| | | | | on_conflict_dispatch() uses hashmap_steal_first() and then does something non-trivial with it. It may care about the order.
* mac: rename apis with mac_{selinux/smack}_ prefixWaLyong Cho2014-10-231-1/+1
|
* resolved: simplify detection of packets from the loopback deviceLennart Poettering2014-10-223-23/+2
| | | | | | | We can simplify our code quite a bit if we explicitly check for the ifindex being 1 on Linux as a loopback check. Apparently, this is hardcoded on Linux on the kernel, and effectively exported to userspace via rtnl and such, hence we should be able to rely on it.
* resolve: add missing headerLukasz Skalski2014-10-171-0/+1
| | | | Change-Id: I64f7c6b446f6d92057c35cc3d4e29bd2bad8f75b
* resolved: apply label to /run/systemd/resolve/resolv.confZbigniew Jędrzejewski-Szmek2014-10-142-3/+10
| | | | | | | Under an SELinux system, we want the file that is created to have a proper context, different from the default for files in /run. This is so that the policy can give access to almost everyone to this file.
* resolved: split out writing of resolv.confZbigniew Jędrzejewski-Szmek2014-10-141-27/+34
| | | | manager_write_resolv_conf() is quite long anyway.
* hashmap: introduce hash_ops to make struct Hashmap smallerMichal Schmidt2014-09-1514-22/+35
| | | | | | | | | 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.
* resolved: fall back to hardcoded ifindex when checking if a link is the loopbackTom Gundersen2014-09-131-1/+7
| | | | | | Reported by Philippe De Swert <philippedeswert@gmail.com>. Coverity CID#1237656
* resolved: fix typo in log messageLennart Poettering2014-08-221-1/+1
|
* shared: add MAXSIZE() and use it in resolvedDavid Herrmann2014-08-222-2/+2
| | | | | | | | | | | The MAXSIZE() macro takes two types and returns the size of the larger one. It is much simpler to use than MAX(sizeof(A), sizeof(B)) and also avoids any compiler-extensions, unlike CONST_MAX() and MAX() (which are needed to avoid evaluating arguments more than once). This was suggested by Daniele Nicolodi <daniele@grinta.net>. Also make resolved use this macro instead of CONST_MAX(). This enhances readability quite a bit.
* notify: send STOPPING=1 from our daemonsLennart Poettering2014-08-211-1/+3
|
* resolved: write resolv.conf search - switch argumentsTom Gundersen2014-08-201-1/+1
| | | | Found by Lukáš Nykrýn.
* resolved: fix which return codes we checkLennart Poettering2014-08-201-2/+2
| | | | Discovered by Lukas Nykryn
* resolved-dns-rr: fix typoLukas Nykryn2014-08-201-7/+7
| | | | | a->rrsig.type_covered != a->rrsig.type_covered" is always false regardless of the values of its operands because those operands are identical.
* resolve: fix compilation on LLVM+clangDavid Herrmann2014-08-152-2/+2
| | | | | LLVM+clang does not allow statement-expressions inside of type-declarations (file-scope). Use CONST_MAX() to avoid this.
* resolved: fix assertion when joining llmnr mcast groupLennart Poettering2014-08-151-1/+4
|
* resolved: pull in domain names from sd-networkTom Gundersen2014-08-142-5/+75
|
* resolved: clarify that LLMNR scopes must have a link assignedLennart Poettering2014-08-141-0/+4
| | | | | | This is supposed to remove some compiler warnings: http://lists.freedesktop.org/archives/systemd-devel/2014-July/021393.html
* resolved: enable LLMNRLennart Poettering2014-08-141-3/+2
| | | | | | THis was accidentally broken, as we truned off LLMNR far to frequently, where we only wanted to turn off LLMNr on IPV6 on kernels lacking support for it.
* resolved: allow passing on which protocol, family and interface to look ↵Lennart Poettering2014-08-147-33/+137
| | | | | | something up Also, return on which protocol/family/interface we found something.
* sd-network: /_get_link_/_link_get_/Tom Gundersen2014-08-131-3/+3
| | | | | | The link is the 'object', so make this in line with our usual naming convention. Suggested by Kay and Lennart.
* resolved: skip IPv6 LLMNR if IPv6 is not availableLennart Poettering2014-08-132-13/+22
|
* resolved: return exit code of event loopLennart Poettering2014-08-121-0/+2
|
* resolved: unify logic how we flush out DNS servers we learntLennart Poettering2014-08-125-26/+28
|
* resolved: filter out duplicate DNS servers when writing resolv.confLennart Poettering2014-08-123-10/+67
|
* resolved: initialize counterThomas Hindoe Paaboel Andersen2014-08-121-2/+2
| | | | introduced in: a407657425a3e47fd2b559cd3bc800f791303f63
* sd-network: rename the per-ifindex calls to sd_network_get_link_xxx()Lennart Poettering2014-08-111-2/+2
| | | | | This way we can introduce system-wide versions of these calls that are called the same way, but without the "link" in the name.
* resolved: when picking a new hostname make sure two hosts pick different onesLennart Poettering2014-08-111-2/+10
| | | | | This way we can avoid always picking the same replacement hostnames when picking one.
* resolved: actually, the peer with the lower IP address wins conflictsLennart Poettering2014-08-112-6/+6
|
* resolved: make sure we don't mark the wrong zone RRs conflictingLennart Poettering2014-08-113-3/+11
|
* resolved: be a bit more communicative about conflictsLennart Poettering2014-08-112-4/+15
|
* resolved: verify all RRs when we come back from suspendLennart Poettering2014-08-115-0/+64
|
* resolved: destroy outstanding queries if the clients that initiated them dieLennart Poettering2014-08-113-0/+47
|
* resolved: properly pass aborted transaction result back to clientsLennart Poettering2014-08-111-2/+5
|
* resolved: implement full LLMNR conflict detection logicLennart Poettering2014-08-1111-58/+467
|
* resolved: properly check return value of dns_resource_record_equal()Lennart Poettering2014-08-113-2/+4
|
* resolved: don't abort if a transaction is aborted because its scope is removedLennart Poettering2014-08-051-2/+4
|
* resolved: add 100ms initial jitter to all LLMNR requestsLennart Poettering2014-08-053-1/+35
|
* resolved: enforce ratelimit on LLMNR trafficLennart Poettering2014-08-053-3/+14
|
* resolved: don't consider tentative addresses relevantLennart Poettering2014-08-051-1/+1
|
* resolved: fix a message typoLennart Poettering2014-08-051-3/+3
|
* resolved: stop the prober when we detect a conflict in LLMNRLennart Poettering2014-08-051-1/+2
|
* resolved: don't override zone item state after starting the probeLennart Poettering2014-08-051-2/+2
| | | | | After all, the probe might be finished immeidately (due to resources, ...), and we shouldn't then set the state back to probing.
* resolved: when sending fails, don't try connecting to the next DNS server if ↵Lennart Poettering2014-08-051-0/+5
| | | | we actually use LLMNR as protocol
* resolved: never reuse transactions for probing that are already completed ↵Lennart Poettering2014-08-054-5/+15
| | | | based on cached data
* resolved: bypass local cache when we issue a transaction for verification ↵Lennart Poettering2014-08-051-16/+21
| | | | purposes
* resolved: if there's already an RR established that has the same name of an ↵Lennart Poettering2014-08-051-6/+26
| | | | | | RR to be established, skip probing the name After all, what has been probed once, doesn't need to be probed again.
* resolved: actually read the initial state data from networkd when we initializeLennart Poettering2014-08-041-0/+4
|
* resolved: read the per-interface LLMNR setting from networkd and act on itLennart Poettering2014-08-043-10/+46
|