aboutsummaryrefslogtreecommitdiffstats
path: root/pingu_gateway.h
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-08-15 16:59:02 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2011-08-15 16:59:02 +0200
commitfeddb5d300640855717c4eca3002a0e4887f5da3 (patch)
tree64738e351b3fba57606be08b9c84b8c6e70fa81e /pingu_gateway.h
parentff0c3156353830540028400aa20eadc9e86fa55f (diff)
downloadpingu-feddb5d300640855717c4eca3002a0e4887f5da3.tar.bz2
pingu-feddb5d300640855717c4eca3002a0e4887f5da3.tar.xz
pingu_gateway: move is_default_gw
It belongs in pingu_gateway
Diffstat (limited to 'pingu_gateway.h')
-rw-r--r--pingu_gateway.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/pingu_gateway.h b/pingu_gateway.h
index 62c576b..9cfea89 100644
--- a/pingu_gateway.h
+++ b/pingu_gateway.h
@@ -10,11 +10,11 @@ struct pingu_gateway {
union sockaddr_any src;
unsigned char dst_len;
unsigned char src_len;
-
+
int metric;
unsigned char protocol;
unsigned char scope;
- unsigned char type;
+ unsigned char type;
struct list_head gateway_list_entry;
};
@@ -23,7 +23,8 @@ void pingu_gateway_add(struct list_head *gateway_list,
struct pingu_gateway *gw);
void pingu_gateway_del(struct list_head *gateway_list,
struct pingu_gateway *gw);
-
+int is_default_gw(struct pingu_gateway *route);
+
#endif