Revision 1567edea sysdep/linux/netlink/netlink.c

View differences:

sysdep/linux/netlink/netlink.c
498 498
      nl_add_attr_ipa(&r.h, sizeof(r), RTA_GATEWAY, a->gw);
499 499
      break;
500 500
    case RTD_DEVICE:
501
      if (!a->iface)
502
	return;
501 503
      r.r.rtm_type = RTN_UNICAST;
502 504
      nl_add_attr_u32(&r.h, sizeof(r), RTA_OIF, a->iface->index);
503 505
      break;
......
531 533
  else
532 534
    {
533 535
      if (old)
534
	{
535
	  if (!old->attrs->iface || (old->attrs->iface->flags & IF_UP))
536
	    nl_send_route(p, old, 0);
537
	  /* else the kernel has already flushed it */
538
	}
536
	nl_send_route(p, old, 0);
537

  
539 538
      if (new)
540 539
	nl_send_route(p, new, 1);
541 540
    }

Also available in: Unified diff