VirtualBox

Ignore:
Timestamp:
Jul 8, 2015 10:34:19 AM (9 years ago)
Author:
vboxsync
Message:

VBoxNetFlt/linux: Simplify check for IPv6 link-local addresses that
should work with older kernels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r56847 r56855  
    19381938        {
    19391939            if (   dev != pThis->u.s.pDev
    1940                 && ipv6_addr_src_scope(&ifa->addr) <= IPV6_ADDR_SCOPE_LINKLOCAL)
     1940                && ipv6_addr_type(&ifa->addr) & (IPV6_ADDR_LINKLOCAL | IPV6_ADDR_LOOPBACK))
    19411941                continue;
    19421942
     
    20212021
    20222022    if (   !fMyDev
    2023         && ipv6_addr_src_scope(&ifa->addr) <= IPV6_ADDR_SCOPE_LINKLOCAL)
     2023        && ipv6_addr_type(&ifa->addr) & (IPV6_ADDR_LINKLOCAL | IPV6_ADDR_LOOPBACK))
    20242024        return NOTIFY_OK;
    20252025
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