Added logic for announcing that a network has a gateway to the outside world (with the function uip_over_mesh_make_announced_gateway()). The announced gateway sends a trickle message to the network, containing the address of the gateway. Other nodes will then know that packets destined to the outside world should go through the gateway node.
This commit is contained in:
parent
8851a6359a
commit
5243d58ac5
2 changed files with 56 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: uip-over-mesh.h,v 1.2 2008/02/03 20:56:07 adamdunkels Exp $
|
||||
* $Id: uip-over-mesh.h,v 1.3 2008/11/09 12:20:56 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -52,4 +52,6 @@ void uip_over_mesh_set_gateway_netif(struct uip_fw_netif *netif);
|
|||
void uip_over_mesh_set_gateway(rimeaddr_t *gw);
|
||||
void uip_over_mesh_set_net(uip_ipaddr_t *addr, uip_ipaddr_t *mask);
|
||||
|
||||
void uip_over_mesh_make_announced_gateway(void);
|
||||
|
||||
#endif /* __UIP-OVER-MESH_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue