add linkable library -lm
add gateway info in the rip broadcast and validate the gw info periodically