libnl  1.1
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 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 struct rtnl_nexthop;
23 
24 extern struct rtnl_nexthop * rtnl_route_nh_alloc(void);
25 extern struct rtnl_nexthop * rtnl_route_nh_clone(struct rtnl_nexthop *);
26 extern void rtnl_route_nh_free(struct rtnl_nexthop *);
27 extern void rtnl_route_nh_set_weight(struct rtnl_nexthop *, int);
28 extern void rtnl_route_nh_set_ifindex(struct rtnl_nexthop *, int);
29 extern void rtnl_route_nh_set_gateway(struct rtnl_nexthop *,
30  struct nl_addr *);
31 extern void rtnl_route_nh_set_flags(struct rtnl_nexthop *,
32  unsigned int);
33 extern void rtnl_route_nh_unset_flags(struct rtnl_nexthop *,
34  unsigned int);
35 extern unsigned int rtnl_route_nh_get_flags(struct rtnl_nexthop *);
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif