diff options
author | Harald Welte <laforge@osmocom.org> | 2019-10-29 22:06:23 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2019-11-05 20:51:04 +0000 |
commit | b521a2ed09b368a30d2cd17190a3a574a79c68ab (patch) | |
tree | a4e8cd37aa2cc5483d2b42dc1a78a0ee4c7ddf93 /src/xua_as_fsm.c | |
parent | 1a822635f8e5a389aaae68d2d4fed3e310739129 (diff) |
vty: Permit configuration of ASPs in SCTP client mode
The M3UA specification states that either of the two roles should
be the SCTP client and the other the server. It also states that
the default for the SGP is to operate as server. However, it permits
other configurations. Let's allow this to be configured by the VTY.
We need to ensure that while in ASP role, we don't send any NOTIFY
messages to the peer SG.
Change-Id: I7452a862d45da35dcd58654ca17222eb52d26f1f
Closes: OS#2005
Diffstat (limited to 'src/xua_as_fsm.c')
-rw-r--r-- | src/xua_as_fsm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xua_as_fsm.c b/src/xua_as_fsm.c index cf75ef3..97a2107 100644 --- a/src/xua_as_fsm.c +++ b/src/xua_as_fsm.c @@ -51,6 +51,10 @@ static int asp_notify_all_as(struct osmo_ss7_as *as, struct osmo_xlm_prim_notify if (!asp) continue; + /* NOTIFY are only sent by SG or IPSP role */ + if (asp->cfg.role == OSMO_SS7_ASP_ROLE_ASP) + continue; + if (!asp->fi || asp->fi->state == XUA_ASP_S_DOWN) continue; |