2 * netlink/route/nexthop.h Routing Nexthop
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
9 * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
12 #ifndef NETLINK_ROUTE_NEXTHOP_H_
13 #define NETLINK_ROUTE_NEXTHOP_H_
15 #include <netlink/netlink.h>
16 #include <netlink/addr.h>
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 *,
26 extern void rtnl_route_nh_set_flags(struct rtnl_nexthop *,
28 extern void rtnl_route_nh_unset_flags(struct rtnl_nexthop *,
30 extern unsigned int rtnl_route_nh_get_flags(struct rtnl_nexthop *);