Skip to content

Commit

Permalink
RTP: print bound ports in verbose
Browse files Browse the repository at this point in the history
Until now, in verbose mode was printed the dynamically selected port
pair. But the knowledge should be useful also to ensure the ports where
it doesn't need to be clear, eg. in server mode or for receiver to see
that 5004 is indeed bound.
  • Loading branch information
MartinPulec committed Sep 23, 2024
1 parent c572e20 commit 264d40a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rtp/rtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
// IANA/RFC 6335 suggested range 49152-65535. Implementatins may differ, eg. Linux uses 32768-60999.
#define IPPORT_DYNAMIC ((1U<<15U) + (1U<<14U))
#define IPPORT_MAX ((1U<<16U) - 1U)
#define MOD_NAME "[rtp] "

/*
* Encryption stuff.
Expand Down Expand Up @@ -1089,6 +1090,8 @@ struct rtp *rtp_init_if(const char *addr, const char *iface,
} else {
verbose_msg("Found empty UDP port pair %d/%d\n", rx_port, rx_port + 1);
}
} else {
MSG(VERBOSE, "Bound to ports %d/%d\n", rx_port, rx_port + 1);
}
if (tx_port == 0) {
tx_port = rx_port;
Expand Down

0 comments on commit 264d40a

Please sign in to comment.