aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb/gprs_ns2_sns.c
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2021-01-14 16:58:17 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2021-01-14 18:32:43 +0100
commitc4426d382b86cb827d4648ddc451911df6efedb1 (patch)
tree26018717c729cfb2569b42d5e5e23aedc9611cbf /src/gb/gprs_ns2_sns.c
parentdec7b8c2387b64af60caf434bbb4cbcf29ca2d16 (diff)
WIP Fixdaniel/ns2
Diffstat (limited to 'src/gb/gprs_ns2_sns.c')
-rw-r--r--src/gb/gprs_ns2_sns.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gb/gprs_ns2_sns.c b/src/gb/gprs_ns2_sns.c
index 2cb42934..19584775 100644
--- a/src/gb/gprs_ns2_sns.c
+++ b/src/gb/gprs_ns2_sns.c
@@ -270,6 +270,8 @@ static void ns2_nsvc_create_ip4(struct osmo_fsm_inst *fi,
/* for every bind, create a connection if bind type == IP */
llist_for_each_entry(bind, &nsi->binding, list) {
+ if (bind->ll != GPRS_NS2_LL_UDP)
+ continue;
/* ignore failed connection */
nsvc = gprs_ns2_ip_connect_inactive(bind,
&remote,
@@ -299,6 +301,8 @@ static void ns2_nsvc_create_ip6(struct osmo_fsm_inst *fi,
/* for every bind, create a connection if bind type == IP */
llist_for_each_entry(bind, &nsi->binding, list) {
+ if (bind->ll != GPRS_NS2_LL_UDP)
+ continue;
/* ignore failed connection */
nsvc = gprs_ns2_ip_connect_inactive(bind,
&remote,
@@ -332,6 +336,8 @@ static int create_missing_nsvcs(struct osmo_fsm_inst *fi)
llist_for_each_entry(bind, &nse->nsi->binding, list) {
bool found = false;
+ if (bind->ll != GPRS_NS2_LL_UDP)
+ continue;
llist_for_each_entry(nsvc, &nse->nsvc, list) {
if (nsvc->bind != bind)
@@ -367,6 +373,8 @@ static int create_missing_nsvcs(struct osmo_fsm_inst *fi)
llist_for_each_entry(bind, &nse->nsi->binding, list) {
bool found = false;
+ if (bind->ll != GPRS_NS2_LL_UDP)
+ continue;
llist_for_each_entry(nsvc, &nse->nsvc, list) {
if (nsvc->bind != bind)