]> git.ipfire.org Git - thirdparty/systemd.git/commit
hostname-util: introduce new is_gateway_hostname() call
authorLennart Poettering <lennart@poettering.net>
Mon, 17 Aug 2015 21:35:09 +0000 (23:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Aug 2015 10:07:13 +0000 (12:07 +0200)
commit46a5e0e7421bcc47755ae15d430c15a16dc9e03e
treefe35c4ae0f8d063ebb5ad8dd77480bc3a21f9408
parent0d43ffef5ad277183ebaef259b2210bfaf913749
hostname-util: introduce new is_gateway_hostname() call

This moves is_gateway() from nss-myhostname into the basic APIs, and
makes it more like is_localhost(). Also, we rename it to
is_gateway_hostname() to make it more expressive.

Sharing this function in src/basic/ allows us to reuse the function for
routing name requests in resolved (in a later commit).
src/basic/hostname-util.c
src/basic/hostname-util.h
src/nss-myhostname/nss-myhostname.c