From feddb5d300640855717c4eca3002a0e4887f5da3 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 15 Aug 2011 16:59:02 +0200 Subject: pingu_gateway: move is_default_gw It belongs in pingu_gateway --- pingu_gateway.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pingu_gateway.h') 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 -- cgit v1.2.3