VirtualBox

Ignore:
Timestamp:
Jan 14, 2009 10:28:22 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
41564
Message:

don't flood the release log with IPv6 warnings

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
2 edited

Legend:

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

    r15768 r15933  
    4040#define ETH_P_IP        0x0800          /* Internet Protocol packet     */
    4141
     42#ifdef ETH_P_IPV6
     43# undef ETH_P_IPV6
     44#endif /* ETH_P_IPV6 */
     45#define ETH_P_IPV6      0x86DD          /* IPv6 */
     46
    4247#endif
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r15914 r15933  
    10581058    struct mbuf *m;
    10591059    int proto;
     1060    static bool fWarnedIpv6;
    10601061
    10611062    if (pkt_len < ETH_HLEN)
    10621063    {
    1063         LogRel(("packet having size %d has been ingnored\n", pkt_len));
     1064        LogRel(("NAT: packet having size %d has been ingnored\n", pkt_len));
    10641065        return;
    10651066    }
     
    10671068    m = m_get(pData);
    10681069    if (m == NULL)
    1069     {
    10701070        LogRel(("can't allocate new mbuf\n"));
    1071     }
     1071
    10721072    /* Note: we add to align the IP header */
    10731073
    10741074    if (M_FREEROOM(m) < pkt_len)
    1075     {
    10761075       m_inc(m, pkt_len);
    1077     }
     1076
    10781077    m->m_len = pkt_len ;
    10791078    memcpy(m->m_data, pkt, pkt_len);
     
    10981097            ip_input(pData, m);
    10991098            break;
     1099        case ETH_P_IPV6:
     1100            m_free(pData, m);
     1101            if (!fWarnedIpv6)
     1102            {
     1103                LogRel(("NAT: IPv6 not supported\n"));
     1104                fWarnedIpv6 = true;
     1105            }
     1106            break;
    11001107        default:
    1101             LogRel(("Unsupported protocol %x\n", proto));
     1108            LogRel(("NAT: Unsupported protocol %x\n", proto));
    11021109            m_free(pData, m);
    11031110            break;
Note: See TracChangeset for help on using the changeset viewer.

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