diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2015-11-11 17:20:42 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2015-11-16 15:16:44 +0100 |
commit | 3317c84c163a567e0d9405df6d4945689dac1f2c (patch) | |
tree | d8515f0a2fa00a814b173536ae463d7f5a729a0f /openbsc/src/gprs/gtphub.c | |
parent | c83cd898ef3c167c370d0c3240f355f192388ec7 (diff) |
gtphub: Add logging for ares queries.
Looking for a segfault, I added a lot of logging. This may be useful for
live testing ares, leaving it in there for now.
Note: I still want to clean up the logging concerning log levels etc. once
we're out of alpha.
Sponsored-by: On-Waves ehi
Diffstat (limited to 'openbsc/src/gprs/gtphub.c')
-rw-r--r-- | openbsc/src/gprs/gtphub.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/openbsc/src/gprs/gtphub.c b/openbsc/src/gprs/gtphub.c index d6dbb4d0c..b3638fe3f 100644 --- a/openbsc/src/gprs/gtphub.c +++ b/openbsc/src/gprs/gtphub.c @@ -960,10 +960,10 @@ static uint32_t gtphub_tei_mapping_have(struct gtphub *hub, return (uint32_t)nrm->repl; } -static int gtphub_map_seq(struct gtp_packet_desc *p, - struct gtphub_peer_port *from_port, - struct gtphub_peer_port *to_port, - time_t now) +static void gtphub_map_seq(struct gtp_packet_desc *p, + struct gtphub_peer_port *from_port, + struct gtphub_peer_port *to_port, + time_t now) { /* Store a mapping in to_peer's map, so when we later receive a GTP * packet back from to_peer, the seq nr can be unmapped back to its @@ -974,8 +974,6 @@ static int gtphub_map_seq(struct gtp_packet_desc *p, /* Change the GTP packet to yield the new, mapped seq nr */ set_seq(p, nrm->repl); - - return 0; } static struct gtphub_peer_port *gtphub_unmap_seq(struct gtp_packet_desc *p, @@ -1681,6 +1679,9 @@ void gtphub_resolved_ggsn(struct gtphub *hub, const char *apn_oi_str, struct gtphub_peer_port *pp; struct gtphub_resolved_ggsn *ggsn; + LOG("Resolved GGSN callback: %s %s\n", + apn_oi_str, osmo_hexdump((unsigned char*)resolved_addr, sizeof(*resolved_addr))); + pp = gtphub_port_have(hub, &hub->to_ggsns[GTPH_PLANE_CTRL], resolved_addr, 2123); if (!pp) { |