From 3682c4bf7f20eb24559e55512465526c89cfe16b Mon Sep 17 00:00:00 2001 From: paulc Date: Wed, 26 Jan 2011 09:31:30 +0000 Subject: [PATCH] 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 --- libs/ysig/router.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/ysig/router.cpp b/libs/ysig/router.cpp index 73aa7f65..8e3d7447 100644 --- a/libs/ysig/router.cpp +++ b/libs/ysig/router.cpp @@ -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)