From de06e5715e780baade318f3490ac7a4c9ce84e32 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Sat, 24 Mar 2012 01:37:02 +0100 Subject: Imported Upstream version 0.9.4.0 --- src/nm-netlink-utils.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/nm-netlink-utils.h') diff --git a/src/nm-netlink-utils.h b/src/nm-netlink-utils.h index c6c452a0..697faaf0 100644 --- a/src/nm-netlink-utils.h +++ b/src/nm-netlink-utils.h @@ -24,6 +24,7 @@ #include #include #include +#include gboolean nm_netlink_find_address (int ifindex, int family, @@ -43,11 +44,16 @@ struct rtnl_route * nm_netlink_route_new (int ifindex, int mss, ...) __attribute__((__sentinel__)); -int nm_netlink_route_add (struct rtnl_route *route, - int family, - const void * dst, /* struct in_addr or struct in6_addr */ +int nm_netlink_route4_add (struct rtnl_route *route, + guint32 *dst, + int prefix, + guint32 *gw, + int flags); + +int nm_netlink_route6_add (struct rtnl_route *route, + const struct in6_addr *dst, int prefix, - const void * gw, /* struct in_addr or struct in6_addr */ + const struct in6_addr *gw, int flags); gboolean nm_netlink_route_delete (struct rtnl_route *route); @@ -76,5 +82,5 @@ struct rtnl_route * nm_netlink_foreach_route (int ifindex, NlRouteForeachFunc callback, gpointer user_data); -#endif /* NM_NETLINK_MONITOR_H */ +#endif /* NM_NETLINK_UTILS_H */ -- cgit 1.3.0-6-gf8a5