libnl  3.2.3
/build/buildd/libnl3-3.2.3/include/netlink/cli/route.h
00001 /*
00002  * netlink/cli//route.h     CLI Route Helpers
00003  *
00004  *      This library is free software; you can redistribute it and/or
00005  *      modify it under the terms of the GNU Lesser General Public
00006  *      License as published by the Free Software Foundation version 2.1
00007  *      of the License.
00008  *
00009  * Copyright (c) 2008-2009 Thomas Graf <tgraf@suug.ch>
00010  */
00011 
00012 #ifndef __NETLINK_CLI_ROUTE_H_
00013 #define __NETLINK_CLI_ROUTE_H_
00014 
00015 #include <netlink/route/route.h>
00016 
00017 extern struct rtnl_route *nl_cli_route_alloc(void);
00018 
00019 extern struct nl_cache *nl_cli_route_alloc_cache(struct nl_sock *, int);
00020 
00021 extern void     nl_cli_route_parse_family(struct rtnl_route *, char *);
00022 extern void     nl_cli_route_parse_dst(struct rtnl_route *, char *);
00023 extern void     nl_cli_route_parse_src(struct rtnl_route *, char *);
00024 extern void     nl_cli_route_parse_pref_src(struct rtnl_route *, char *);
00025 extern void     nl_cli_route_parse_metric(struct rtnl_route *, char *);
00026 extern void     nl_cli_route_parse_nexthop(struct rtnl_route *, char *, struct nl_cache *);
00027 extern void     nl_cli_route_parse_table(struct rtnl_route *, char *);
00028 extern void     nl_cli_route_parse_prio(struct rtnl_route *, char *);
00029 extern void     nl_cli_route_parse_scope(struct rtnl_route *, char *);
00030 extern void     nl_cli_route_parse_protocol(struct rtnl_route *, char *);
00031 extern void     nl_cli_route_parse_type(struct rtnl_route *, char *);
00032 extern void     nl_cli_route_parse_iif(struct rtnl_route *, char *, struct nl_cache *);
00033 
00034 #endif