summary refs log tree commit diff
path: root/src/nm-netlink-utils.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2012-03-24 01:37:02 +0100
committerMichael Biebl <biebl@debian.org>2012-03-24 01:37:02 +0100
commitde06e5715e780baade318f3490ac7a4c9ce84e32 (patch)
tree23fbc3fafc12072476eff98bee60100eb54c29db /src/nm-netlink-utils.h
parentb436a68a20ff3114ded32a7a3d70cdd4954039f9 (diff)
Imported Upstream version 0.9.4.0 upstream/0.9.4.0
Diffstat (limited to 'src/nm-netlink-utils.h')
-rw-r--r--src/nm-netlink-utils.h16
1 files changed, 11 insertions, 5 deletions
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 <glib.h>
 #include <netlink/route/rtnl.h>
 #include <netlink/route/route.h>
+#include <netinet/in.h>
 
 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 */