mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 06:03:10 +00:00
2004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* ospf_packet.c: (ospf_read) Always look up the interface if ospf_recv_packet returns NULL ifp, since some platforms such as Solaris 8 appear to support ifindex retrieval but don't.
This commit is contained in:
parent
be21024692
commit
b87f772abe
@ -1,3 +1,9 @@
|
|||||||
|
2004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||||
|
|
||||||
|
* ospf_packet.c: (ospf_read) Always look up the interface if
|
||||||
|
ospf_recv_packet returns NULL ifp, since some platforms such
|
||||||
|
as Solaris 8 appear to support ifindex retrieval but don't.
|
||||||
|
|
||||||
2004-12-22 Hasso Tepper <hasso at quagga.net>
|
2004-12-22 Hasso Tepper <hasso at quagga.net>
|
||||||
|
|
||||||
* ospf_dump.c: Show debug configuration in vtysh.
|
* ospf_dump.c: Show debug configuration in vtysh.
|
||||||
|
@ -2341,11 +2341,11 @@ ospf_read (struct thread *thread)
|
|||||||
iph = (struct ip *) STREAM_DATA (ibuf);
|
iph = (struct ip *) STREAM_DATA (ibuf);
|
||||||
sockopt_iphdrincl_swab_systoh (iph);
|
sockopt_iphdrincl_swab_systoh (iph);
|
||||||
|
|
||||||
/* openbsd lacks IP_RECVIF */
|
|
||||||
#if !(defined(IP_PKTINFO) || defined(IP_RECVIF))
|
|
||||||
if (ifp == NULL)
|
if (ifp == NULL)
|
||||||
|
/* 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 (iph->ip_src);
|
ifp = if_lookup_address (iph->ip_src);
|
||||||
#endif /* !((defined(IP_PKTINFO) || defined(IP_RECVIF)) */
|
|
||||||
|
|
||||||
if (ifp == NULL)
|
if (ifp == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user