Changeset 2134 for trunk/libffado/src/dice/dice_eap.cpp
- Timestamp:
- 05/01/12 17:28:44 (12 years ago)
- Files:
-
- trunk/libffado/src/dice/dice_eap.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/dice/dice_eap.cpp
r2123 r2134 1732 1732 1733 1733 bool 1734 EAP::RouterConfig::createRoute(unsigned char src, unsigned char dest) { 1735 debugOutput(DEBUG_LEVEL_VERBOSE,"RouterConfig::createRoute( 0x%02x, 0x%02x )\n", src, dest); 1736 m_routes2.push_back(std::make_pair(dest, src)); 1737 return true; 1738 } 1739 1740 bool 1734 1741 EAP::RouterConfig::setupRoute(unsigned char src, unsigned char dest) { 1735 1742 debugOutput(DEBUG_LEVEL_VERBOSE,"RouterConfig::setupRoute( 0x%02x, 0x%02x )\n", src, dest); 1743 // modify exisiting routing 1736 1744 for (RouteVectorV2::iterator it=m_routes2.begin(); it!=m_routes2.end(); ++it) { 1737 1745 if (it->first == dest) { … … 1740 1748 } 1741 1749 } 1742 m_routes2.push_back(std::make_pair(dest, src));1743 return false;1750 // destination does not yet exist; create it 1751 return createRoute(src, dest); 1744 1752 } 1745 1753