mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 19:10:35 +00:00
Merge pull request #1414 from donaldsharp/set_nexthop
lib: Fix nexthop reading to work better
This commit is contained in:
commit
0ce9f92d86
@ -2186,7 +2186,7 @@ DEFUN (set_ip_nexthop,
|
|||||||
return CMD_WARNING_CONFIG_FAILED;
|
return CMD_WARNING_CONFIG_FAILED;
|
||||||
}
|
}
|
||||||
if (su.sin.sin_addr.s_addr == 0
|
if (su.sin.sin_addr.s_addr == 0
|
||||||
|| IPV4_CLASS_DE(su.sin.sin_addr.s_addr)) {
|
|| IPV4_CLASS_DE(ntohl(su.sin.sin_addr.s_addr))) {
|
||||||
vty_out(vty,
|
vty_out(vty,
|
||||||
"%% nexthop address cannot be 0.0.0.0, multicast or reserved\n");
|
"%% nexthop address cannot be 0.0.0.0, multicast or reserved\n");
|
||||||
return CMD_WARNING_CONFIG_FAILED;
|
return CMD_WARNING_CONFIG_FAILED;
|
||||||
|
Loading…
Reference in New Issue
Block a user