summaryrefslogtreecommitdiff
path: root/src/nss-myhostname
Commit message (Collapse)AuthorAge
* remove unused includesThomas Hindoe Paaboel Andersen2015-02-23
| | | | | | This patch removes includes that are not used. The removals were found with include-what-you-use which checks if any of the symbols from a header is in use.
* nss-myhostname: always will in canonical hostname field when resolving ↵Lennart Poettering2015-01-05
| | | | | | addresses to hostnames https://bugs.freedesktop.org/show_bug.cgi?id=87634
* nss-myhostname: introduce is_gateway() similar to the existing is_hostname()Lennart Poettering2014-12-19
|
* nss-myhostname: also recognize "gateway."Harald Hoyer2014-12-16
| | | | | "gateway." skips adding the domain search path and saves some queries to the nameserver.
* rtnl: when querying local addresses and gateways, take address family into ↵Lennart Poettering2014-12-04
| | | | account
* nss-myhostname: always resolve the host name "gateway" to the local default ↵Lennart Poettering2014-12-03
| | | | | | | | gateway This is useful inside of containers or local networks to intrdouce a stable name of the default gateway host (in case of containers usually the host, in case of LANs usually local router).
* networkd: add minimal client tool "networkd" to query network statusLennart Poettering2014-08-12
| | | | | | | In the long run this should become a full fledged client to networkd (but not before networkd learns bus support). For now, just pull interesting data out of networkd, udev, and rtnl and present it to the user, in a simple but useful output.
* nss: always explicitly reset all error variablesLennart Poettering2014-08-01
| | | | | | | glibc appears to be broken if we don't explicitly reset all error variables, let's work around that. https://bugzilla.redhat.com/show_bug.cgi?id=1125975
* nss-myhostname: don't include assert.h twiceLennart Poettering2014-07-23
|
* shared: rename PROTO_ADDRESS_SIZE() to FAMILY_ADDRESS_SIZE()Lennart Poettering2014-07-18
| | | | | We mostly use "family" to refer to AF_INET, AF_INET6, etc, let's use this terminology here, too
* nss: various minor fixes to nss-myhostname + nss-mymachinesLennart Poettering2014-07-16
|
* nss-myhostname: simplify array building a bitLennart Poettering2014-07-11
|
* nss-myhostname: move NSS boilerplate to nss-util.hLennart Poettering2014-07-10
|
* nss-myhostname: move local address listing logic into shared, so that we can ↵Lennart Poettering2014-07-10
| | | | make use of it from machined
* nss-myhostname: only export the NSS entry point symbols, nothing elseLennart Poettering2014-07-10
|
* nss-myhostname: following the usual naming scheme for .c/.h filesLennart Poettering2014-07-10
|
* nss-myhostname: various modernizationsLennart Poettering2014-07-10
|
* nss-myhostname: port to sd-rtnlTom Gundersen2014-04-19
|
* Remove duplicate includesKarel Zak2013-11-18
|
* use #pragma once instead of foo*foo define guardsShawn Landden2013-11-18
|
* Never call qsort on potentially NULL arraysZbigniew Jędrzejewski-Szmek2013-10-13
| | | | | | This extends 62678ded 'efi: never call qsort on potentially NULL arrays' to all other places where qsort is used and it is not obvious that the count is non-zero.
* build-sys: add makefile stub link to nss-myhostname/Lennart Poettering2013-04-30
|
* nss-myhostname: resolve 'localhost' so that /etc/hosts becomes optionalLennart Poettering2013-04-24
| | | | | | | | | | | | | | This makes sure nss-myhostname not only resolves the local host name to 127.0.0.2/::1 but also the host name 'localhost: to 127.0.0.1/::1. This makes installation of /etc/passwd optional, as it usually only includes a mapping for 'localhost'. This change also resolves ::1 to the local hostname (as before), but also lists 'localhost' as an alias. This means look-ups are now fully reversible, even though they are 1:n mappings. Finally, the module will no longer erroneously claim that local IP addresses which aren't on the loopback device were.
* nss-myhostname: ensure that glibc's assert is usedDave Reisner2013-04-19
|
* move _cleanup_ attribute in front of the typeHarald Hoyer2013-04-18
| | | | http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html
* Use initalization instead of explicit zeroing in more placesZbigniew Jędrzejewski-Szmek2013-04-10
|
* nss-myhostname: do not use _cleanup_Zbigniew Jędrzejewski-Szmek2013-04-02
| | | | | | | | | | mss-myhostname wasn't working because of underlinking. Instead of fixing the underlinking, just remove the use of _cleanup_ macros. It is impolite to use our utility functions in modules designed to be loaded by others. So cleanup macros which (at some point) call assert which calls log_assert_failed, should not be used. Revert this part of commit d73c3269c.
* nss-myhostname: use _cleanup_ and split function into twoZbigniew Jędrzejewski-Szmek2013-03-31
| | | | | | | The triply nested loop is just too much. Let's split out the middle loop's body, so the whole thing is easier to read. Also modernize the style a bit, using structure initialization to avoid memset and such.
* nss-myhostname: copy first result to preallocated bufferEelco Dolstra2013-02-07
| | | | | | | | | | | | | | | Fixes a segfault in nscd when using nss-myhostname. Nscd expects that an NSS module's gethostbyname4_r function returns its first result in the pre-allocated gaih_addrtuple denoted by **pat. (See nscd/aicache.c in the Glibc sources.) However, nss-myhostname doesn't fill in **pat but allocates the first result in ‘buffer’, then sets *pat. So nscd crashes (e.g. when running ‘getent ahosts my-machine’). Hard to tell if this is a bug in nscd, since there doesn't seem to be a proper API spec for gethostbyname4_r. But in any case, this patch fixes the crash by copying the first result to **pat.
* nss-myhostname: remove redundant .gitignoreTom Gundersen2013-01-07
|
* nss-myhostname: integrate documentationTom Gundersen2013-01-07
| | | | | Converted from html to xml and changed the style to fit into the other manpages.
* nss-myhostname: integrate into systemd buildsystemTom Gundersen2013-01-07
| | | | | | Note that there are still some rome for cleanups. In particular, the .la files are now installed, which we probably don't want; and some of the macros in Makefile.am are likely redundan.
* nss-myhostname: remove duplicate LICENCETom Gundersen2013-01-07
| | | | Also update the licence in the source files.
* nss-myhostname: remove non-Linux supportTom Gundersen2013-01-07
|
* nss-myhostname: move to subdirectoryTom Gundersen2013-01-03
In order to merge into the systemd repos.