18808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf/* 28808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf * netlink/cli/link.h CLI Link Helpers 38808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf * 48808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf * This library is free software; you can redistribute it and/or 58808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf * modify it under the terms of the GNU Lesser General Public 68808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf * License as published by the Free Software Foundation version 2.1 78808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf * of the License. 88808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf * 98808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf * Copyright (c) 2008-2009 Thomas Graf <tgraf@suug.ch> 108808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf */ 118808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf 128808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf#ifndef __NETLINK_CLI_LINK_H_ 138808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf#define __NETLINK_CLI_LINK_H_ 148808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf 158808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf#include <netlink/route/link.h> 168808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf#include <netlink/cli/utils.h> 178808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf 188808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf#define nl_cli_link_alloc_cache(sk) \ 198808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf nl_cli_alloc_cache((sk), "link", rtnl_link_alloc_cache) 208808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf 218808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Grafextern struct rtnl_link *nl_cli_link_alloc(void); 228808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf 238808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Grafextern void nl_cli_link_parse_family(struct rtnl_link *, char *); 248808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Grafextern void nl_cli_link_parse_name(struct rtnl_link *, char *); 258808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Grafextern void nl_cli_link_parse_mtu(struct rtnl_link *, char *); 268808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Grafextern void nl_cli_link_parse_ifindex(struct rtnl_link *, char *); 278808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Grafextern void nl_cli_link_parse_txqlen(struct rtnl_link *, char *); 288808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Grafextern void nl_cli_link_parse_weight(struct rtnl_link *, char *); 298808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf 308808743839b0f459394ecd00cb0f7c1896c0ab7aThomas Graf#endif 31