X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=ipaddr.h;h=d8bc9fa5415b8747b677a5d66aae8999759c28e7;hb=49b56eafcd147185c28848a7c04e31a32c49a82e;hp=54f10d434367988a596f526c6fb1f267b75fe544;hpb=1caa23ff879cec7f8f36b32a987f0610291ef177;p=secnet.git diff --git a/ipaddr.h b/ipaddr.h index 54f10d4..d8bc9fa 100644 --- a/ipaddr.h +++ b/ipaddr.h @@ -1,4 +1,22 @@ /* Useful functions for dealing with collections of IP addresses */ +/* + * This file is part of secnet. + * See README for full list of copyright holders. + * + * secnet is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * secnet is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * version 3 along with secnet; if not, see + * https://www.gnu.org/licenses/gpl.html. + */ #ifndef ipaddr_h #define ipaddr_h @@ -53,6 +71,6 @@ extern string_t subnet_to_string(struct subnet sn); extern struct ipset *string_list_to_ipset(list_t *l,struct cloc loc, cstring_t module, cstring_t param); -extern uint32_t string_item_to_ipaddr(item_t *i, cstring_t desc); +extern uint32_t string_item_to_ipaddr(const item_t *i, cstring_t desc); #endif /* ipaddr_h */