diff options
| author | Harald Welte <laforge@gnumonks.org> | 2015-12-26 23:40:31 +0100 |
|---|---|---|
| committer | Harald Welte <laforge@gnumonks.org> | 2015-12-26 23:40:31 +0100 |
| commit | 5bea800fa752efe7d307ede31574a236663dfc17 (patch) | |
| tree | 8a88d891dabe76a58f57b08c0b0c82c2aa6beb93 | |
| parent | 552fdf144a15335b54b9dcd9a062ce29aa1f0f67 (diff) | |
More verbose logging (CS/PS domain)
| -rw-r--r-- | src/hnbgw_rua.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/hnbgw_rua.c b/src/hnbgw_rua.c index ed43330..961a5c5 100644 --- a/src/hnbgw_rua.c +++ b/src/hnbgw_rua.c @@ -107,7 +107,8 @@ int rua_tx_dt(struct hnb_context *hnb, int is_ps, uint32_t context_id, &out); ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_RUA_DirectTransfer, &out); - DEBUGP(DRUA, "transmitting RUA payload of %u bytes\n", msgb_length(msg)); + DEBUGP(DRUA, "transmitting RUA (cn=%s) payload of %u bytes\n", + is_ps ? "ps" : "cs", msgb_length(msg)); return hnbgw_rua_tx(hnb, msg); } @@ -147,7 +148,9 @@ int rua_tx_disc(struct hnb_context *hnb, int is_ps, uint32_t context_id, &out); ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_RUA_Disconnect, &out); - DEBUGP(DRUA, "transmitting RUA payload of %u bytes\n", msgb_length(msg)); + DEBUGP(DRUA, "transmitting RUA (cn=%s) payload of %u bytes\n", + is_ps ? "ps" : "cs", msgb_length(msg)); + return hnbgw_rua_tx(hnb, msg); } @@ -288,6 +291,10 @@ static int rua_rx_init_connect(struct msgb *msg, ANY_t *in) case RUA_CN_DomainIndicator_ps_domain: cn = hnb->gw->cnlink_ps; break; + default: + LOGP(DRUA, LOGL_ERROR, "Unsupported Domain %u\n", + ies.cN_DomainIndicator); + return -1; } DEBUGP(DRUA, "RUA Connect.req(ctx=0x%x, %s)\n", context_id, |
