summaryrefslogtreecommitdiff
path: root/modules/natpmp
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-06-26 22:02:17 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-06-26 22:02:17 +0200
commit1c76f5224e54277269f24e65dce8e9c2ddf2f3cf (patch)
treed350ba7adb355a37331cb5137800e62ecc1edc38 /modules/natpmp
parent5a9e093e916d6e3d4ffb8046ce666176ce245d12 (diff)
natpmp: minor cleanups
Diffstat (limited to 'modules/natpmp')
-rw-r--r--modules/natpmp/natpmp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/natpmp/natpmp.c b/modules/natpmp/natpmp.c
index dec7980..9157612 100644
--- a/modules/natpmp/natpmp.c
+++ b/modules/natpmp/natpmp.c
@@ -29,11 +29,11 @@ struct mnat_sess {
struct mnat_media {
struct comp {
struct natpmp_req *natpmp;
- uint16_t int_port;
- unsigned id;
- struct mnat_media *media;
+ struct mnat_media *media; /* pointer to parent */
struct tmr tmr;
+ uint16_t int_port;
uint32_t lifetime;
+ unsigned id;
bool granted;
} compv[2];
unsigned compc;
@@ -240,8 +240,8 @@ static int comp_alloc(struct comp *comp, void *sock)
comp->int_port = sa_port(&laddr);
- info("natpmp: comp %u local UDP port is %u\n",
- comp->id, comp->int_port);
+ info("natpmp: `%s' stream comp %u local UDP port is %u\n",
+ sdp_media_name(comp->media->sdpm), comp->id, comp->int_port);
err = natpmp_mapping_request(&comp->natpmp, &natpmp_srv,
comp->int_port, 0, comp->lifetime,