path: root/openbsc/src/libmgcp/mgcp_network.c
diff options
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-01-21 11:39:47 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-01-21 11:43:03 +0100
commit9be675ea52c2da4b7e2de3339e3d600efc8a853b (patch)
treefd041fc231a8eb2ca34dd3183598dd3bf3f8f126 /openbsc/src/libmgcp/mgcp_network.c
parentd91934357fe28e5362da600e61fd6473f33ff62b (diff)
mgcp: Honor the rtp IP_TOS settings for Osmux
Honor the IP_TOS settings for Osmux as well. Re-use the RTP setting as it makes sense to classify the audio packets the same way. Fixes: OW#1369
Diffstat (limited to 'openbsc/src/libmgcp/mgcp_network.c')
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/src/libmgcp/mgcp_network.c b/openbsc/src/libmgcp/mgcp_network.c
index 37fc59ae..c3f43dd3 100644
--- a/openbsc/src/libmgcp/mgcp_network.c
+++ b/openbsc/src/libmgcp/mgcp_network.c
@@ -901,7 +901,7 @@ int mgcp_create_bind(const char *source_addr, struct osmo_fd *fd, int port)
return 0;
-static int set_ip_tos(int fd, int tos)
+int mgcp_set_ip_tos(int fd, int tos)
int ret;
ret = setsockopt(fd, IPPROTO_IP, IP_TOS,
@@ -925,8 +925,8 @@ static int bind_rtp(struct mgcp_config *cfg, struct mgcp_rtp_end *rtp_end, int e
goto cleanup1;
- set_ip_tos(rtp_end->rtp.fd, cfg->endp_dscp);
- set_ip_tos(rtp_end->rtcp.fd, cfg->endp_dscp);
+ mgcp_set_ip_tos(rtp_end->rtp.fd, cfg->endp_dscp);
+ mgcp_set_ip_tos(rtp_end->rtcp.fd, cfg->endp_dscp);
rtp_end->rtp.when = BSC_FD_READ;
if (osmo_fd_register(&rtp_end->rtp) != 0) {