gateway: export refresh_smartgw_netmask function
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 21 Aug 2012 13:01:48 +0000 (15:01 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 21 Aug 2012 13:06:59 +0000 (15:06 +0200)
we need it when we adjust the uplink and/or downlink speeds

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/gateway.c
src/gateway.h

index 4239744..181dd69 100644 (file)
@@ -131,7 +131,7 @@ static void smartgw_tunnel_monitor (int if_index __attribute__ ((unused)),
 /**
  * Setup the gateway netmask
  */
-static void refresh_smartgw_netmask(void) {
+void refresh_smartgw_netmask(void) {
   uint8_t *ip;
   memset(&smart_gateway_netmask, 0, sizeof(smart_gateway_netmask));
 
index 57b4e2f..c6f6bdb 100644 (file)
@@ -83,6 +83,7 @@ AVLNODE2STRUCT(node2gateway, struct gateway_entry, node);
 /** the gateway tree */
 extern struct avl_tree gateway_tree;
 
+void refresh_smartgw_netmask(void);
 int olsr_init_gateways(void);
 void olsr_cleanup_gateways(void);
 void olsr_trigger_inetgw_startup(void);