VirtualBox

Changeset 49710 in vbox for trunk/src


Ignore:
Timestamp:
Nov 28, 2013 11:47:47 PM (11 years ago)
Author:
vboxsync
Message:

Fix edito in previous: create icmp6 socket using OS-specific socket
type, always use SOL_RAW for Linux-specific ICMP_FILTER.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/VBoxNetLwipNAT.cpp

    r49689 r49710  
    12401240        };
    12411241
    1242         int status = setsockopt(icmpsock4, icmpstype, ICMP_FILTER,
     1242        int status = setsockopt(icmpsock4, SOL_RAW, ICMP_FILTER,
    12431243                                &flt, sizeof(flt));
    12441244        if (status < 0)
     
    12491249    }
    12501250
    1251     icmpsock6 = socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6);
     1251    icmpsock6 = socket(AF_INET6, icmpstype, IPPROTO_ICMPV6);
    12521252    if (icmpsock6 == INVALID_SOCKET)
    12531253    {
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