ei->t_hello = NULL;
if (IS_DEBUG_EIGRP(0, TIMERS))
- zlog (NULL, LOG_DEBUG, "Start Hello Timer (%s) Expire [%u]",
- IF_NAME(ei), EIGRP_IF_PARAM(ei, v_hello));
+ zlog_debug ("Start Hello Timer (%s) Expire [%u]",
+ IF_NAME(ei), EIGRP_IF_PARAM(ei, v_hello));
/* Sending hello packet. */
eigrp_hello_send(ei, EIGRP_HELLO_NORMAL, NULL);
/* Note that sockopt_iphdrincl_swab_systoh was called in eigrp_recv_packet. */
if (ifp == NULL)
{
+ struct connected *c;
/* Handle cases where the platform does not support retrieving the ifindex,
and also platforms (such as Solaris 8) that claim to support ifindex
retrieval but do not. */
- ifp = if_lookup_address((void *)&iph->ip_src, VRF_DEFAULT);
+ c = if_lookup_address((void *)&iph->ip_src, VRF_DEFAULT);
- if (ifp == NULL)
+ if (c == NULL)
return 0;
+
+ ifp = c->ifp;
}
/* associate packet with eigrp interface */
eigrp_update_receive(eigrp, iph, eigrph, ibuf, ei, length);
break;
default:
- zlog(NULL, LOG_WARNING,
- "interface %s: EIGRP packet header type %d unsupported",
- IF_NAME(ei), opcode);
+ zlog_warn("interface %s: EIGRP packet header type %d unsupported",
+ IF_NAME(ei), opcode);
break;
}