diff options
author | jjako <jjako> | 2004-01-28 09:27:34 +0000 |
---|---|---|
committer | jjako <jjako> | 2004-01-28 09:27:34 +0000 |
commit | 1ea66348518ad1d438ea14bc7a16244bbb49b9a0 (patch) | |
tree | 7811c242f39999321b4efd8c0fcacbda8bc511f3 /gtp | |
parent | 3eaf453e06109e6117ce95dfb3c0fd37f5dc0471 (diff) |
Added FreeBSD route capability
Diffstat (limited to 'gtp')
-rw-r--r-- | gtp/gtp.c | 2 | ||||
-rw-r--r-- | gtp/pdp.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -2960,7 +2960,7 @@ int gtp_data_req(struct gsn_t *gsn, struct pdp_t* pdp, packet.gtp0.h.length = hton16(len); packet.gtp0.h.seq = hton16(pdp->gtpsntx++); packet.gtp0.h.flow = hton16(pdp->flru); - packet.gtp0.h.tid = (pdp->imsi & 0x0fffffffffffffff) + ((uint64_t)pdp->nsapi << 60); + packet.gtp0.h.tid = (pdp->imsi & 0x0fffffffffffffffull) + ((uint64_t)pdp->nsapi << 60); if (len > sizeof (union gtp_packet) - sizeof(struct gtp0_header)) { gsn->err_memcpy++; @@ -243,7 +243,7 @@ int pdp_tidget(struct pdp_t **pdp, uint64_t tid) { int pdp_getimsi(struct pdp_t **pdp, uint64_t imsi, uint8_t nsapi) { return pdp_tidget(pdp, - (imsi & 0x0fffffffffffffff) + ((uint64_t)nsapi << 60)); + (imsi & 0x0fffffffffffffffull) + ((uint64_t)nsapi << 60)); } /* @@ -336,7 +336,7 @@ int pdp_euaton(struct ul66_t *eua, struct in_addr *dst) { } uint64_t pdp_gettid(uint64_t imsi, uint8_t nsapi) { - return (imsi & 0x0fffffffffffffff) + ((uint64_t)nsapi << 60); + return (imsi & 0x0fffffffffffffffull) + ((uint64_t)nsapi << 60); } int ulcpy(void* dst, void* src, size_t size) { |