networkd-address.h revision 6666907869fb3bc7fe6a6025540db5b887c7a78b
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering This file is part of systemd.
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering Copyright 2013 Tom Gundersen <teg@jklm.no>
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 Poettering#define CACHE_INFO_INFINITY_LIFE_TIME 0xFFFFFFFFU
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering unsigned char scope;
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poetteringint address_new_static(Network *network, unsigned section, Address **ret);
054f0db48775d566e4f55feb7cda0f721a9eb485Tom Gundersenint address_add(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret);
cf1d700da3fe04cd4c27980a292301694be3b05fTom Gundersenint address_get(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret);
36c32f6120a0c3fe19be5aeaa1926e179e8c29baTom Gundersenint address_update(Address *address, unsigned char flags, unsigned char scope, struct ifa_cacheinfo *cinfo);
6666907869fb3bc7fe6a6025540db5b887c7a78bTom Gundersenint address_configure(Address *address, Link *link, sd_netlink_message_handler_t callback, bool update);
91b5f997316ddc77d26f9a7a5e24c335484586bdTom Gundersenint address_remove(Address *address, Link *link, sd_netlink_message_handler_t callback);
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poetteringbool address_equal(Address *a1, Address *a2);
fc2f9534d07db2b185c02b1961428b53daf1986eLennart PoetteringDEFINE_TRIVIAL_CLEANUP_FUNC(Address*, address_free);
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poettering#define _cleanup_address_free_ _cleanup_(address_freep)
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poetteringint config_parse_address(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poetteringint config_parse_broadcast(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
fc2f9534d07db2b185c02b1961428b53daf1986eLennart Poetteringint config_parse_label(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);