link.h revision 8808743839b0f459394ecd00cb0f7c1896c0ab7a
1/* 2 * netlink/cli/link.h CLI Link 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@suug.ch> 10 */ 11 12#ifndef __NETLINK_CLI_LINK_H_ 13#define __NETLINK_CLI_LINK_H_ 14 15#include <netlink/route/link.h> 16#include <netlink/cli/utils.h> 17 18#define nl_cli_link_alloc_cache(sk) \ 19 nl_cli_alloc_cache((sk), "link", rtnl_link_alloc_cache) 20 21extern struct rtnl_link *nl_cli_link_alloc(void); 22 23extern void nl_cli_link_parse_family(struct rtnl_link *, char *); 24extern void nl_cli_link_parse_name(struct rtnl_link *, char *); 25extern void nl_cli_link_parse_mtu(struct rtnl_link *, char *); 26extern void nl_cli_link_parse_ifindex(struct rtnl_link *, char *); 27extern void nl_cli_link_parse_txqlen(struct rtnl_link *, char *); 28extern void nl_cli_link_parse_weight(struct rtnl_link *, char *); 29 30#endif 31