VirtualBox

Changeset 39883 in vbox for trunk


Ignore:
Timestamp:
Jan 26, 2012 8:11:00 AM (13 years ago)
Author:
vboxsync
Message:

NAT:ARP: reserved ARP WHO HAS 0.0.0.0 diagnosys for myself.
o WHO HAS 0.0.0.0 is warning that something processed incorrectly and need to be envestigated.

Warning appears once at release logs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r39776 r39883  
    21282128    struct ethhdr *ehdr;
    21292129    struct arphdr *ahdr;
     2130    static bool   fWarned = false;
    21302131    LogFlowFunc(("ENTER: %RTnaipv4\n", dst));
     2132
     2133    /* ARP request WHO HAS 0.0.0.0 is one of the signals
     2134     * that something has been broken at Slirp. Investigating
     2135     * pcap dumps it's easy to miss warning ARP requests being
     2136     * focused on investigation of other protocols flow.
     2137     */
     2138#ifdef DEBUG_vvl
     2139    Assert((dst != INADDR_ANY));
     2140    NOREF(fWarned);
     2141#else
     2142    if (   dst == INADDR_ANY
     2143        && !fWarned)
     2144    {
     2145        LogRel(("NAT:ARP: \"WHO HAS INADDR_ANY\" request has been detected\n"));
     2146        fWarned = true;
     2147    }
     2148#endif /* !DEBUG_vvl */
    21312149
    21322150    m = m_getcl(pData, M_NOWAIT, MT_HEADER, M_PKTHDR);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette