Print out the gateway's IP address more prominently
This commit is contained in:
parent
8bfb856220
commit
bc6c9410cc
1 changed files with 4 additions and 2 deletions
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)$Id: contiki-sky-main.c,v 1.54 2009/04/29 11:46:20 adamdunkels Exp $
|
* @(#)$Id: contiki-sky-main.c,v 1.55 2009/05/12 17:32:49 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
@ -177,8 +177,10 @@ set_gateway(void)
|
||||||
{
|
{
|
||||||
if(!is_gateway) {
|
if(!is_gateway) {
|
||||||
leds_on(LEDS_RED);
|
leds_on(LEDS_RED);
|
||||||
printf("%d.%d: making myself the IP network gateway.\n",
|
printf("%d.%d: making myself the IP network gateway.\n\n",
|
||||||
rimeaddr_node_addr.u8[0], rimeaddr_node_addr.u8[1]);
|
rimeaddr_node_addr.u8[0], rimeaddr_node_addr.u8[1]);
|
||||||
|
printf("IPv4 address of the gateway: %d.%d.%d.%d\n\n",
|
||||||
|
uip_ipaddr_to_quad(&uip_hostaddr));
|
||||||
uip_over_mesh_set_gateway(&rimeaddr_node_addr);
|
uip_over_mesh_set_gateway(&rimeaddr_node_addr);
|
||||||
uip_over_mesh_make_announced_gateway();
|
uip_over_mesh_make_announced_gateway();
|
||||||
is_gateway = 1;
|
is_gateway = 1;
|
||||||
|
|
Loading…
Reference in a new issue