lynxis lazus has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmo-sigtran/+/43998?usp=email )


Change subject: tcap_as_loadshare: print a "Wrong traffic mode" notice on all 
TCAP PDUs
......................................................................

tcap_as_loadshare: print a "Wrong traffic mode" notice on all TCAP PDUs

Change-Id: I314dc5dc7564e4bb6973cb758297f12da9476c1b
---
M src/tcap_as_loadshare.c
1 file changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran 
refs/changes/98/43998/1

diff --git a/src/tcap_as_loadshare.c b/src/tcap_as_loadshare.c
index 12a482c..f394499 100644
--- a/src/tcap_as_loadshare.c
+++ b/src/tcap_as_loadshare.c
@@ -917,15 +917,15 @@
                goto out;
        }

+       if (!as->cfg.loadshare.tcap.enabled || as->cfg.mode != 
OSMO_SS7_AS_TMOD_LOADSHARE)
+               LOGPASP(asp, DLTCAP, LOGL_NOTICE, "Wrong traffic mode %s on AS 
%s will not use TCAP Ranges\n", osmo_ss7_as_traffic_mode_name(as->cfg.mode), 
as->cfg.name);
+
        routing_msg = (enum ipa_tcap_routing_msg_types) hdr->mt;
        switch (routing_msg) {
        case MT_TID_ADD_RANGE: {
                struct tcap_range *tcrng;
                struct ipa_tcap_routing_add_range tcar = {};

-               if (!as->cfg.loadshare.tcap.enabled || as->cfg.mode != 
OSMO_SS7_AS_TMOD_LOADSHARE)
-                       LOGPASP(asp, DLTCAP, LOGL_NOTICE, "Wrong traffic mode 
%s on AS %s will not use TCAP Ranges\n", 
osmo_ss7_as_traffic_mode_name(as->cfg.mode), as->cfg.name);
-
                if (msgb_length(msg) < sizeof(*hdr) + sizeof(struct 
ipa_tcap_routing_add_range)) {
                        LOGPASP(asp, DLTCAP, LOGL_ERROR, "TCAP routing message 
is too small\n");
                        rc = -EINVAL;

--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/43998?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I314dc5dc7564e4bb6973cb758297f12da9476c1b
Gerrit-Change-Number: 43998
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <[email protected]>

Reply via email to