VirtualBox

Ignore:
Timestamp:
Feb 28, 2012 7:07:42 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76508
Message:

NAT: CTL_CHECK(x) verify whether address belong to NAT network either.

File:
1 edited

Legend:

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

    r28800 r40279  
    2525#define CTL_BROADCAST   255
    2626
    27 #define CTL_CHECK(x, ctl) (((x) & ~pData->netmask) == (ctl))
     27#define CTL_CHECK(x, ctl) (((x) & ~pData->netmask) == (ctl) \
     28                           && (((x) & ~pData->netmask) == (pData->special_addr.s_addr & ~pData->netmask)))
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