Never advertise a point code from same linkset local address, it must be always allowed by TRA to adjacent node.

Such condition can happen in a nonstandard STP with multiple local point codes.


git-svn-id: http://yate.null.ro/svn/yate/trunk@4071 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2011-01-26 09:31:30 +00:00
parent 0e12e79f50
commit 3682c4bf7f
1 changed files with 3 additions and 0 deletions

View File

@ -1029,6 +1029,9 @@ void SS7Router::routeChanged(const SS7Route* route, SS7PointCode::Type type,
local = getLocal(type);
if (!local)
break;
// never advertise a local point code from itself
if (r->packed() == local)
break;
const char* cmd = SS7Route::stateName(state);
v = (*l3p)->getRoutes(type);
if (v)