Changeset 6829 for source/ariba/utility


Ignore:
Timestamp:
Nov 4, 2009, 4:27:19 PM (15 years ago)
Author:
mies
Message:

fixed loopback bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/addressing/endpoint_set.hpp

    r5406 r6829  
    161161        enum layers {
    162162                Layer1 = 1, Layer2 = 2, Layer3 = 4, Layer4 = 8, Layer5 = 16,
    163                 Layer6 = 32, Layer7 = 64, Layer8 = 128, AllLayers = ~0,
     163                Layer6 = 32, Layer7 = 64, Layer8 = 128, NoLoopback = 256,AllLayers = ~0,
    164164                Layer1_3 = Layer1|Layer2|Layer3,
    165165                Layer1_4 = Layer1|Layer2|Layer3|Layer4,
     
    192192                if ( address->instanceof<ip_address>() ) {
    193193                        const ip_address& addr = *address;
    194                         if (layers & Layer3) ip.insert( addr );
     194                        if ((layers & Layer3) && !(layers & NoLoopback) && addr.is_loopback())
     195                                ip.insert( addr );
    195196                } else
    196197                if (address->instanceof<rfcomm_endpoint>() ) {
Note: See TracChangeset for help on using the changeset viewer.