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;
gate = true;
}
break;
- case AFI_IP6:
+ case AF_INET6:
+ zlog_warn("v6 blackhole routes have not been programmed yet");
break;
}
}
__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));
return res;
}
-int kernel_neigh_update(int add, int ifindex, uint32_t addr, char *lla,
- int llalen, ns_id_t ns_id)
+enum zebra_dplane_result kernel_nexthop_update(struct zebra_dplane_ctx *ctx)
{
- /* TODO */
- return 0;
+ return ZEBRA_DPLANE_REQUEST_SUCCESS;
}
-extern int kernel_get_ipmr_sg_stats(struct zebra_vrf *zvrf, void *mroute)
+int kernel_neigh_update(int add, int ifindex, uint32_t addr, char *lla,
+ int llalen, ns_id_t ns_id)
{
+ /* TODO */
return 0;
}
-int kernel_add_vtep(vni_t vni, struct interface *ifp, struct in_addr *vtep_ip)
+/* NYI on routing-socket platforms, but we've always returned 'success'... */
+enum zebra_dplane_result kernel_neigh_update_ctx(struct zebra_dplane_ctx *ctx)
{
- return 0;
+ return ZEBRA_DPLANE_REQUEST_SUCCESS;
}
-int kernel_del_vtep(vni_t vni, struct interface *ifp, struct in_addr *vtep_ip)
+extern int kernel_get_ipmr_sg_stats(struct zebra_vrf *zvrf, void *mroute)
{
return 0;
}
return ZEBRA_DPLANE_REQUEST_SUCCESS;
}
-int kernel_add_neigh(struct interface *ifp, struct ipaddr *ip,
- struct ethaddr *mac, uint8_t flags)
-{
- return 0;
-}
-
-int kernel_del_neigh(struct interface *ifp, struct ipaddr *ip)
-{
- return 0;
-}
-
extern int kernel_interface_set_master(struct interface *master,
struct interface *slave)
{
return 0;
}
-uint32_t kernel_get_speed(struct interface *ifp)
+uint32_t kernel_get_speed(struct interface *ifp, int *error)
{
return ifp->speed;
}