This commit was generated by cvs2svn to compensate for changes in r786,
[libnl.git] / include / netlink / route / nexthop.h
1 /*
2  * netlink/route/nexthop.h      Routing Nexthop
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) 2003-2006 Thomas Graf <tgraf@suug.ch>
10  */
11
12 #ifndef NETLINK_ROUTE_NEXTHOP_H_
13 #define NETLINK_ROUTE_NEXTHOP_H_
14
15 #include <netlink/netlink.h>
16 #include <netlink/addr.h>
17
18 struct rtnl_nexthop;
19
20 extern struct rtnl_nexthop *    rtnl_route_nh_alloc(void);
21 extern void             rtnl_route_nh_free(struct rtnl_nexthop *);
22 extern void             rtnl_route_nh_set_weight(struct rtnl_nexthop *, int);
23 extern void             rtnl_route_nh_set_ifindex(struct rtnl_nexthop *, int);
24 extern void             rtnl_route_nh_set_gateway(struct rtnl_nexthop *,
25                                                   struct nl_addr *);
26 extern void             rtnl_route_nh_set_flags(struct rtnl_nexthop *,
27                                                 unsigned int);
28 extern void             rtnl_route_nh_unset_flags(struct rtnl_nexthop *,
29                                                   unsigned int);
30 extern unsigned int     rtnl_route_nh_get_flags(struct rtnl_nexthop *);
31
32 #endif