aboutsummaryrefslogtreecommitdiffstats
path: root/gtp
diff options
context:
space:
mode:
Diffstat (limited to 'gtp')
-rw-r--r--gtp/pdp.c11
-rw-r--r--gtp/pdp.h1
2 files changed, 0 insertions, 12 deletions
diff --git a/gtp/pdp.c b/gtp/pdp.c
index f0d6adf..f297af9 100644
--- a/gtp/pdp.c
+++ b/gtp/pdp.c
@@ -370,14 +370,3 @@ void pdp_set_imsi_nsapi(struct pdp_t *pdp, uint64_t teid)
pdp->imsi = teid & 0x0fffffffffffffffull;
pdp->nsapi = (teid & 0xf000000000000000ull) >> 60;
}
-
-int ulcpy(void *dst, void *src, size_t size)
-{
- if (((struct ul255_t *)src)->l <= size) {
- ((struct ul255_t *)dst)->l = ((struct ul255_t *)src)->l;
- memcpy(((struct ul255_t *)dst)->v, ((struct ul255_t *)src)->v,
- ((struct ul255_t *)dst)->l);
- return 0;
- } else
- return EOF;
-}
diff --git a/gtp/pdp.h b/gtp/pdp.h
index 57af8b3..217b1d6 100644
--- a/gtp/pdp.h
+++ b/gtp/pdp.h
@@ -252,6 +252,5 @@ 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);
-int ulcpy(void *dst, void *src, size_t size);
#endif /* !_PDP_H */