gbproxy: Have a clear namespace for the public functions
Done with Jacob
diff --git a/openbsc/src/gprs/gb_proxy.c b/openbsc/src/gprs/gb_proxy.c
index 158950d..504b1a4 100644
--- a/openbsc/src/gprs/gb_proxy.c
+++ b/openbsc/src/gprs/gb_proxy.c
@@ -144,7 +144,7 @@
}
/* Find the gbprox_peer by its NSEI */
-struct gbprox_peer *peer_by_nsei(uint16_t nsei)
+struct gbprox_peer *gbprox_peer_by_nsei(uint16_t nsei)
{
struct gbprox_peer *peer;
llist_for_each_entry(peer, &gbcfg.bts_peers, list) {
@@ -1332,7 +1332,7 @@
peer = peer_by_bvci(msgb_bvci(msg));
if (!peer && !to_bss)
- peer = peer_by_nsei(msgb_nsei(msg));
+ peer = gbprox_peer_by_nsei(msgb_nsei(msg));
if (!peer)
peer = peer_by_bssgp_tlv(&tp);
@@ -1544,7 +1544,7 @@
* BSSGP */
if (!TLVP_PRESENT(&tp, BSSGP_IE_ROUTEING_AREA))
goto err_mand_ie;
- from_peer = peer_by_nsei(nsei);
+ from_peer = gbprox_peer_by_nsei(nsei);
if (!from_peer)
goto err_no_peer;
memcpy(from_peer->ra, TLVP_VAL(&tp, BSSGP_IE_ROUTEING_AREA),
@@ -1911,7 +1911,7 @@
if (!nsvc->remote_end_is_sgsn) {
/* from BSS to SGSN */
- peer = peer_by_nsei(nsvc->nsei);
+ peer = gbprox_peer_by_nsei(nsvc->nsei);
if (!peer) {
LOGP(DGPRS, LOGL_NOTICE, "signal %u for unknown peer "
"NSEI=%u/NSVCI=%u\n", signal, nsvc->nsei,
diff --git a/openbsc/src/gprs/gb_proxy_vty.c b/openbsc/src/gprs/gb_proxy_vty.c
index ee13e4c..41129d8 100644
--- a/openbsc/src/gprs/gb_proxy_vty.c
+++ b/openbsc/src/gprs/gb_proxy_vty.c
@@ -509,7 +509,7 @@
break;
}
- peer = peer_by_nsei(nsei);
+ peer = gbprox_peer_by_nsei(nsei);
if (!peer) {
vty_out(vty, "Didn't find peer with NSEI %d%s",
nsei, VTY_NEWLINE);