diff options
author | Harald Welte <laforge@osmocom.org> | 2020-12-05 20:05:36 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-12-07 18:22:20 +0100 |
commit | 11ad5713f25de2588518d00f4a5e768c720edcb0 (patch) | |
tree | a46c8675985cb5fb6bd151c840f7fdd263bf4aa5 | |
parent | d651edcce06c5ec13efab7de885b9dd7fc7ff306 (diff) |
gbproxy: use gbprox_relay2peer() whenever possible
gbprox_relay2peer() is a small wrapper around gbprox_relay2nse(),
but as it manages the transmit error counter, we should use it whenever
possible.
Change-Id: I85ab49ca0a25dd7c54b88c4fdc8838843e6d2209
-rw-r--r-- | src/gbproxy/gb_proxy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gbproxy/gb_proxy.c b/src/gbproxy/gb_proxy.c index a30f5ad16..a90030e73 100644 --- a/src/gbproxy/gb_proxy.c +++ b/src/gbproxy/gb_proxy.c @@ -519,7 +519,7 @@ static int gbprox_rx_paging(struct gbproxy_config *cfg, struct msgb *msg, struct hash_for_each(nse->bvcs, j, bvc, list) { if (!memcmp(bvc->ra, TLVP_VAL(tp, BSSGP_IE_ROUTEING_AREA), 6)) { LOGPNSE(nse, LOGL_INFO, "routing to NSE (RAI match)\n"); - gbprox_relay2nse(msg, nse, ns_bvci); + gbprox_relay2peer(msg, bvc, ns_bvci); n_nses++; /* Only send it once to each NSE */ break; @@ -533,7 +533,7 @@ static int gbprox_rx_paging(struct gbproxy_config *cfg, struct msgb *msg, struct hash_for_each(nse->bvcs, j, bvc, list) { if (!memcmp(bvc->ra, TLVP_VAL(tp, BSSGP_IE_LOCATION_AREA), 5)) { LOGPNSE(nse, LOGL_INFO, "routing to NSE (LAI match)\n"); - gbprox_relay2nse(msg, nse, ns_bvci); + gbprox_relay2peer(msg, bvc, ns_bvci); n_nses++; /* Only send it once to each NSE */ break; @@ -545,7 +545,7 @@ static int gbprox_rx_paging(struct gbproxy_config *cfg, struct msgb *msg, struct hash_for_each(cfg->bss_nses, i, nse, list) { hash_for_each(nse->bvcs, j, bvc, list) { LOGPNSE(nse, LOGL_INFO, "routing to NSE (broadcast)\n"); - gbprox_relay2nse(msg, nse, ns_bvci); + gbprox_relay2peer(msg, bvc, ns_bvci); n_nses++; /* Only send it once to each NSE */ break; |