aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-04-29 12:39:33 +0200
committerHarald Welte <laforge@gnumonks.org>2016-04-29 12:53:21 +0200
commite54d7bcef534461f794f98fa186f8afd8f8c318d (patch)
tree605beaae037cb6af92ad90192439a0be3811cce0 /include/osmocom
parentd8026ec1b7be7922fd1c3122d2407a783cdab163 (diff)
Do not send RTP to port 0
Previously it was possible to send RTP data to port 0. This produce multiple errors during the beginning of RTP transmission. To address this OSMO_RTP_F_DISABLED flag was introduced. It's set by default for all new RTP sessions. It can be manually unset after the call to osmo_rtp_socket_create(). When the flag is set it prevents transmission and reception of RTP frames for the session. The flag is unset automatically in osmo_rtp_socket_connect() when session is bound to non-zero remote port. Fixes: OS#1662
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/trau/osmo_ortp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/trau/osmo_ortp.h b/include/osmocom/trau/osmo_ortp.h
index c02cca8..9512759 100644
--- a/include/osmocom/trau/osmo_ortp.h
+++ b/include/osmocom/trau/osmo_ortp.h
@@ -29,6 +29,7 @@ enum osmo_rtp_param {
/*! \brief Flag to indicate the socket is in polling-only mode */
#define OSMO_RTP_F_POLL 0x0001
+#define OSMO_RTP_F_DISABLED 0x0002
/*! \brief A structure representing one RTP socket */
struct osmo_rtp_socket {