diff options
| author | Rafael Zalamena <rzalamena@users.noreply.github.com> | 2017-11-06 16:52:20 -0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-06 16:52:20 -0200 |
| commit | 0ce9f92d869ff912981ba878fc3293a8169eedbd (patch) | |
| tree | 47d6ab8319c60cf17256677f4d9823ab3a1fae45 /lib/routemap.c | |
| parent | 965a99f58a211ba5b5523df4d38eae55eba5459c (diff) | |
| parent | ae2158fecf0a6f63927e6bb4404f762a32328555 (diff) | |
Merge pull request #1414 from donaldsharp/set_nexthop
lib: Fix nexthop reading to work better
Diffstat (limited to 'lib/routemap.c')
| -rw-r--r-- | lib/routemap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/routemap.c b/lib/routemap.c index 31afc33f58..175e099994 100644 --- a/lib/routemap.c +++ b/lib/routemap.c @@ -2186,7 +2186,7 @@ DEFUN (set_ip_nexthop, return CMD_WARNING_CONFIG_FAILED; } 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, "%% nexthop address cannot be 0.0.0.0, multicast or reserved\n"); return CMD_WARNING_CONFIG_FAILED; |
