in-addr-util.h revision 9d485985338a46b8cb1acdf1af6c1eb2e88acfee
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering This file is part of systemd.
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering Copyright 2014 Lennart Poettering
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering systemd is free software; you can redistribute it and/or modify it
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering under the terms of the GNU Lesser General Public License as published by
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering the Free Software Foundation; either version 2.1 of the License, or
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering (at your option) any later version.
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering systemd is distributed in the hope that it will be useful, but
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering Lesser General Public License for more details.
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering You should have received a copy of the GNU Lesser General Public License
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poetteringint in_addr_null(unsigned family, union in_addr_union *u);
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poetteringint in_addr_equal(unsigned family, union in_addr_union *a, union in_addr_union *b);
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poetteringint in_addr_prefix_intersect(unsigned family, const union in_addr_union *a, unsigned aprefixlen, const union in_addr_union *b, unsigned bprefixlen);
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poetteringint in_addr_prefix_next(unsigned family, union in_addr_union *u, unsigned prefixlen);
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poetteringint in_addr_to_string(unsigned family, const union in_addr_union *u, char **ret);
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poetteringint in_addr_from_string(unsigned family, const char *s, union in_addr_union *ret);
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poetteringint in_addr_from_string_auto(const char *s, unsigned *family, union in_addr_union *ret);
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poetteringstatic inline size_t FAMILY_ADDRESS_SIZE(int family) {