[MERGED] osmo-ggsn[master]: gtp/pdp: Remove unused APIs pdp_ntoeua pdp_euaton

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri Jan 26 00:32:54 UTC 2018


Harald Welte has submitted this change and it was merged.

Change subject: gtp/pdp: Remove unused APIs pdp_ntoeua pdp_euaton
......................................................................


gtp/pdp: Remove unused APIs pdp_ntoeua pdp_euaton

Change-Id: I00db99ba8de3f3d90e85bf593ed31555eedb439b
---
M gtp/pdp.c
M gtp/pdp.h
2 files changed, 0 insertions(+), 20 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/gtp/pdp.c b/gtp/pdp.c
index c245fed..a630ee9 100644
--- a/gtp/pdp.c
+++ b/gtp/pdp.c
@@ -364,24 +364,6 @@
 */
 /* Various conversion functions */
 
-int pdp_ntoeua(struct in_addr *src, struct ul66_t *eua)
-{
-	eua->l = 6;
-	eua->v[0] = PDP_EUA_ORG_IETF;
-	eua->v[1] = PDP_EUA_TYPE_v4;
-	memcpy(&eua->v[2], src, 4);	/* Copy a 4 byte address */
-	return 0;
-}
-
-int pdp_euaton(struct ul66_t *eua, struct in_addr *dst)
-{
-	if ((eua->l != 6) || (eua->v[0] != PDP_EUA_ORG_IETF) || (eua->v[1] != PDP_EUA_TYPE_v4)) {
-		return EOF;
-	}
-	memcpy(dst, &eua->v[2], 4);	/* Copy a 4 byte address */
-	return 0;
-}
-
 uint64_t pdp_gettid(uint64_t imsi, uint8_t nsapi)
 {
 	return (imsi & 0x0fffffffffffffffull) + ((uint64_t) nsapi << 60);
diff --git a/gtp/pdp.h b/gtp/pdp.h
index f8955bb..81a38f4 100644
--- a/gtp/pdp.h
+++ b/gtp/pdp.h
@@ -267,8 +267,6 @@
 int pdp_ipget(struct pdp_t **pdp, void* ipif, struct ul66_t *eua);
 */
 
-int pdp_ntoeua(struct in_addr *src, struct ul66_t *eua);
-int pdp_euaton(struct ul66_t *eua, struct in_addr *dst);
 uint64_t pdp_gettid(uint64_t imsi, uint8_t nsapi);
 
 #endif /* !_PDP_H */

-- 
To view, visit https://gerrit.osmocom.org/6070
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I00db99ba8de3f3d90e85bf593ed31555eedb439b
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>



More information about the gerrit-log mailing list