From 8394397c2b1c150dc68a4fe0c6d4ce4bfd731fa3 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 28 Jul 2011 21:22:02 +0200 Subject: pingu: clean up for ipv6 support in future make the pingu_gateway struct also hold a destination so the struct can be reused. use sockaddr_any as much as possible. --- pingu_iface.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pingu_iface.h') diff --git a/pingu_iface.h b/pingu_iface.h index ec55597..0b52195 100644 --- a/pingu_iface.h +++ b/pingu_iface.h @@ -8,7 +8,9 @@ #include "list.h" struct pingu_gateway { - union sockaddr_any gw; + union sockaddr_any gw_addr; + union sockaddr_any dest; + int dest_len; int metric; struct list_head gateway_list_entry; }; @@ -36,6 +38,6 @@ int pingu_iface_init(struct ev_loop *loop, struct list_head *host_list); void pingu_iface_set_addr(struct pingu_iface *iface, int family, void *data, int len); -void pingu_iface_gateway(struct pingu_iface *iface, int family, - void *gateway_ptr, int metric, int action); +void pingu_iface_gw_action(struct pingu_iface *iface, + struct pingu_gateway *gw, int action); #endif -- cgit v1.2.3