networkd-address.h revision cf1d700da3fe04cd4c27980a292301694be3b05f
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering This file is part of systemd.
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering Copyright 2013 Tom Gundersen <teg@jklm.no>
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering systemd is free software; you can redistribute it and/or modify it
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering under the terms of the GNU Lesser General Public License as published by
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering the Free Software Foundation; either version 2.1 of the License, or
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering (at your option) any later version.
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering systemd is distributed in the hope that it will be useful, but
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering Lesser General Public License for more details.
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering You should have received a copy of the GNU Lesser General Public License
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
3f6fd1ba65f962702753c4ad284b588e59689a23Lennart Poettering#define CACHE_INFO_INFINITY_LIFE_TIME 0xFFFFFFFFU
3f6fd1ba65f962702753c4ad284b588e59689a23Lennart Poettering unsigned char scope;
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poetteringint address_new_static(Network *network, unsigned section, Address **ret);
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poetteringint address_add(Link *link, Address *address);
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poetteringint address_get(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret);
e56056e93d33619a3acf13e483900b4f8938228fThomas Hindoe Paaboel Andersenint address_configure(Address *address, Link *link, sd_netlink_message_handler_t callback);
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poetteringint address_update(Address *address, Link *link, sd_netlink_message_handler_t callback);
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poetteringint address_drop(Address *address, Link *link, sd_netlink_message_handler_t callback);
d21ed1ead18d16d35c30299a69d3366847f8a039Lennart Poetteringint address_establish(Address *address, Link *link);
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poetteringint address_release(Address *address, Link *link);
785890acf6d629ff881a1f065f431df1b7fc8c7aLennart Poetteringbool address_equal(Address *a1, Address *a2);
d8f52ed25a9edce75fda5251c977b7898e33887eLennart PoetteringDEFINE_TRIVIAL_CLEANUP_FUNC(Address*, address_free);
acf97e213e69a97e63ab8f7fad7ecd53608c757aLennart Poettering#define _cleanup_address_free_ _cleanup_(address_freep)
8b0cc9a36c8f92f010f2e8465942d2cd7c580d78Lennart 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);
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart 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);
6e18cc9fa078d2a967251017ddb5baefb104b720Lennart 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);