|
|
@ -333,16 +333,19 @@ namespace data |
|
|
|
void RouterInfo::UpdateCapsProperty () |
|
|
|
void RouterInfo::UpdateCapsProperty () |
|
|
|
{ |
|
|
|
{ |
|
|
|
std::string caps; |
|
|
|
std::string caps; |
|
|
|
if (m_Caps & eFloodfill) |
|
|
|
if (m_Caps & eFloodfill) { |
|
|
|
{ |
|
|
|
|
|
|
|
if (m_Caps & eExtraBandwidth) caps += CAPS_FLAG_EXTRA_BANDWIDTH1; // 'P'
|
|
|
|
|
|
|
|
caps += CAPS_FLAG_HIGH_BANDWIDTH3; // 'O'
|
|
|
|
|
|
|
|
caps += CAPS_FLAG_FLOODFILL; // floodfill
|
|
|
|
caps += CAPS_FLAG_FLOODFILL; // floodfill
|
|
|
|
|
|
|
|
caps += (m_Caps & eExtraBandwidth) |
|
|
|
|
|
|
|
? CAPS_FLAG_EXTRA_BANDWIDTH1 // 'P'
|
|
|
|
|
|
|
|
: CAPS_FLAG_HIGH_BANDWIDTH3; // 'O'
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
if (m_Caps & eExtraBandwidth) { |
|
|
|
|
|
|
|
caps += CAPS_FLAG_EXTRA_BANDWIDTH1; // 'P'
|
|
|
|
|
|
|
|
} else if (m_Caps & eHighBandwidth) { |
|
|
|
|
|
|
|
caps += CAPS_FLAG_HIGH_BANDWIDTH3; // 'O'
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
caps += CAPS_FLAG_LOW_BANDWIDTH2; // 'L'
|
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (m_Caps & eExtraBandwidth) caps += CAPS_FLAG_EXTRA_BANDWIDTH1; |
|
|
|
|
|
|
|
caps += (m_Caps & eHighBandwidth) ? CAPS_FLAG_HIGH_BANDWIDTH3 : CAPS_FLAG_LOW_BANDWIDTH2; // bandwidth
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (m_Caps & eHidden) caps += CAPS_FLAG_HIDDEN; // hidden
|
|
|
|
if (m_Caps & eHidden) caps += CAPS_FLAG_HIDDEN; // hidden
|
|
|
|
if (m_Caps & eReachable) caps += CAPS_FLAG_REACHABLE; // reachable
|
|
|
|
if (m_Caps & eReachable) caps += CAPS_FLAG_REACHABLE; // reachable
|
|
|
|