zlog_debug(
"%s: %s: successfully did NH %s",
__func__, prefix_buf, gate_buf);
- if (cmd == RTM_ADD)
- SET_FLAG(nexthop->flags,
- NEXTHOP_FLAG_FIB);
break;
/* The only valid case for this error is kernel's
if ((cmd == RTM_ADD
&& NEXTHOP_IS_ACTIVE(nexthop->flags))
- || (cmd == RTM_DELETE
-#if 0
- && CHECK_FLAG (nexthop->flags, NEXTHOP_FLAG_FIB)
-#endif
- )) {
+ || (cmd == RTM_DELETE)) {
if (nexthop->type == NEXTHOP_TYPE_IPV6
|| nexthop->type == NEXTHOP_TYPE_IPV6_IFINDEX) {
sin_gate.sin6_addr = nexthop->gate.ipv6;
if (nexthop->type == NEXTHOP_TYPE_BLACKHOLE)
bh_type = nexthop->bh_type;
-
- if (cmd == RTM_ADD)
- SET_FLAG(nexthop->flags, NEXTHOP_FLAG_FIB);
}
/* Under kame set interface index to link local address. */
(union sockunion *)mask,
gate ? (union sockunion *)&sin_gate : NULL,
smplsp, ifindex, bh_type, re->metric);
-
-#if 0
- if (error)
- {
- zlog_info ("kernel_rtm_ipv6(): nexthop %d add error=%d.",
- nexthop_num, error);
- }
-#else
(void)error;
-#endif
nexthop_num++;
}