diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-05 12:56:16 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-05 13:02:48 +0200 |
commit | b0e778e4b6c39b50b697d049baea2a074a16b189 (patch) | |
tree | 337d47407488aa84369dc38cd95f8577021861c5 /pingu_iface.h | |
parent | 8ef18a61f70a63bdbf8fb1ecbf8ab34a7f287663 (diff) | |
download | pingu-b0e778e4b6c39b50b697d049baea2a074a16b189.tar.bz2 pingu-b0e778e4b6c39b50b697d049baea2a074a16b189.tar.xz |
pingu_gateway: cleanup. split out gateway funcs
To make code cleaner we move all gateway functions to separate file
and rename a few functions.
Diffstat (limited to 'pingu_iface.h')
-rw-r--r-- | pingu_iface.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/pingu_iface.h b/pingu_iface.h index 8107601..4ef67d4 100644 --- a/pingu_iface.h +++ b/pingu_iface.h @@ -4,25 +4,12 @@ #include <netinet/in.h> #include <ev.h> +#include "pingu_gateway.h" #include "sockaddr_util.h" #include "list.h" #define PINGU_ROUTE_TABLE_AUTO -1 -struct pingu_gateway { - union sockaddr_any gw_addr; - union sockaddr_any dest; - union sockaddr_any src; - unsigned char dst_len; - unsigned char src_len; - - int metric; - unsigned char protocol; - unsigned char scope; - unsigned char type; - struct list_head gateway_list_entry; -}; - struct pingu_iface { char name[32]; int index; |