aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-01-25 18:09:51 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-01-25 18:09:51 +0100
commit5aed8de11da52f10794c1f6805b75cbedcede815 (patch)
tree7b89e5e27a6d19e842cd740d490bfd023b139f87
parent5f5fcff5f3c3a8ff7211fd19876999f58669d461 (diff)
gtp/pdp: Remove unused APIs pdp_ntoeua pdp_euaton
-rw-r--r--gtp/pdp.c18
-rw-r--r--gtp/pdp.h2
2 files changed, 0 insertions, 20 deletions
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 @@ int pdp_ipget(struct pdp_t **pdp, void* ipif, struct ul66_t *eua) {
*/
/* 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_ipdel(struct pdp_t *pdp);
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 */