diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-15 16:59:02 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-15 16:59:02 +0200 |
commit | feddb5d300640855717c4eca3002a0e4887f5da3 (patch) | |
tree | 64738e351b3fba57606be08b9c84b8c6e70fa81e /pingu_gateway.h | |
parent | ff0c3156353830540028400aa20eadc9e86fa55f (diff) | |
download | pingu-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.h | 7 |
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 |