1 /* 2 * netlink/cli/addr.h CLI Address Helpers 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation version 2.1 7 * of the License. 8 * 9 * Copyright (c) 2008-2009 Thomas Graf <tgraf (at) suug.ch> 10 */ 11 12 #ifndef __NETLINK_CLI_ADDR_H_ 13 #define __NETLINK_CLI_ADDR_H_ 14 15 #include <netlink/route/addr.h> 16 17 #define nl_cli_addr_alloc_cache(sk) \ 18 nl_cli_alloc_cache((sk), "address", rtnl_addr_alloc_cache) 19 20 extern struct rtnl_addr *nl_cli_addr_alloc(void); 21 22 extern void nl_cli_addr_parse_family(struct rtnl_addr *, char *); 23 extern void nl_cli_addr_parse_local(struct rtnl_addr *, char *); 24 extern void nl_cli_addr_parse_dev(struct rtnl_addr *, struct nl_cache *,char *); 25 extern void nl_cli_addr_parse_label(struct rtnl_addr *, char *); 26 extern void nl_cli_addr_parse_peer(struct rtnl_addr *, char *); 27 extern void nl_cli_addr_parse_scope(struct rtnl_addr *, char *); 28 extern void nl_cli_addr_parse_broadcast(struct rtnl_addr *, char *); 29 extern void nl_cli_addr_parse_preferred(struct rtnl_addr *, char *); 30 extern void nl_cli_addr_parse_valid(struct rtnl_addr *, char *); 31 32 #endif 33