diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-28 21:22:02 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-28 21:22:02 +0200 |
commit | 8394397c2b1c150dc68a4fe0c6d4ce4bfd731fa3 (patch) | |
tree | e807855be6edf1a3fa28817c6995c4af0d63f1e7 /pingu_iface.h | |
parent | 39eb92db66600bd1bf8a63f24145c9ff1fd7f966 (diff) | |
download | pingu-8394397c2b1c150dc68a4fe0c6d4ce4bfd731fa3.tar.bz2 pingu-8394397c2b1c150dc68a4fe0c6d4ce4bfd731fa3.tar.xz |
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.
Diffstat (limited to 'pingu_iface.h')
-rw-r--r-- | pingu_iface.h | 8 |
1 files changed, 5 insertions, 3 deletions
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 |