summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-stream.c
Commit message (Collapse)AuthorAge
* resolved: simplify detection of packets from the loopback deviceLennart Poettering2014-10-22
| | | | | | | 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.
* shared: add MAXSIZE() and use it in resolvedDavid Herrmann2014-08-22
| | | | | | | | | | | 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.
* resolve: fix compilation on LLVM+clangDavid Herrmann2014-08-15
| | | | | LLVM+clang does not allow statement-expressions inside of type-declarations (file-scope). Use CONST_MAX() to avoid this.
* resolved: IPV6_UNICAST_IF may fail if we already are bound to a device, like ↵Lennart Poettering2014-08-01
| | | | we are for link-local addresses
* resolved: use CLOCK_BOOTTIME instead of CLOCK_MONOTONIC when aging caches ↵Lennart Poettering2014-08-01
| | | | | | and timeing out transactions That way the cache doens't get confused when the system is suspended.
* resolved: when resolving an address PTR record via llmnr, make a tcp ↵Lennart Poettering2014-07-29
| | | | connection by default
* resolve: add llmnr responder side for UDP and TCPLennart Poettering2014-07-29
Name defending is still missing.