Skip to content

Commit

Permalink
Fix #12: allow 0.0.0.0 as RIP address
Browse files Browse the repository at this point in the history
The rip_validatedate() function replaced any all zeros address given by
the user with a random address.  Since rip_initdata() already sets the
default to random we should allow the user to override that.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
  • Loading branch information
troglobit committed Jul 15, 2020
1 parent f5267a4 commit 08d0392
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/nemesis-rip.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@ static void rip_validatedata(void)
break;
}
}

if (riphdr.rip_addr == 0)
riphdr.rip_addr = libnet_get_prand(PRu32);
}

static void rip_usage(char *arg)
Expand Down

0 comments on commit 08d0392

Please sign in to comment.