diff options
| author | Rafael Zalamena <rzalamena@users.noreply.github.com> | 2019-11-22 08:41:30 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-22 08:41:30 -0300 |
| commit | ac7453a2c350d81c4124e76f4e160c5de11a0d4c (patch) | |
| tree | be252db7ba9e950419e632100bf3d68c4cd1c57b /zebra/rt_socket.c | |
| parent | 2d7ef3bba7eeb00adf2aceeca4747b59f4ac5fc7 (diff) | |
| parent | c3d6b3862761980d3a9361dbfbb91b72c23610cf (diff) | |
Merge pull request #5404 from donaldsharp/bsd_null_routes
zebra: BSD null routes were not being installed
Diffstat (limited to 'zebra/rt_socket.c')
| -rw-r--r-- | zebra/rt_socket.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c index 73b3dd0b40..6909bcb137 100644 --- a/zebra/rt_socket.c +++ b/zebra/rt_socket.c @@ -178,7 +178,7 @@ static int kernel_rtm(int cmd, const struct prefix *p, case NEXTHOP_TYPE_BLACKHOLE: bh_type = nexthop->bh_type; switch (p->family) { - case AFI_IP: { + case AF_INET: { struct in_addr loopback; loopback.s_addr = htonl(INADDR_LOOPBACK); sin_gate.sin.sin_addr = loopback; @@ -189,7 +189,8 @@ static int kernel_rtm(int cmd, const struct prefix *p, gate = true; } break; - case AFI_IP6: + case AF_INET6: + zlog_warn("v6 blackhole routes have not been programmed yet"); break; } } @@ -230,13 +231,13 @@ static int kernel_rtm(int cmd, const struct prefix *p, __func__, prefix_buf); } else { switch (p->family) { - case AFI_IP: + case AF_INET: inet_ntop(AF_INET, &sin_gate.sin.sin_addr, gate_buf, sizeof(gate_buf)); break; - case AFI_IP6: + case AF_INET6: inet_ntop(AF_INET6, &sin_gate.sin6.sin6_addr, gate_buf, sizeof(gate_buf)); |
