diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-08-28 14:33:57 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-08-30 15:04:15 +0200 |
commit | 01d47a82b316f29a6a937ab939105eec9f810fa4 (patch) | |
tree | 25fc8cbd5d8b4e354d413c5d8824dea2bbb30d5f /openbsc/src/libmgcp | |
parent | 1185d344e23838f17fad9570ed25f62d1fd24367 (diff) |
rtp: Move the RTP header and defines into a shared header file
Diffstat (limited to 'openbsc/src/libmgcp')
-rw-r--r-- | openbsc/src/libmgcp/mgcp_network.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/openbsc/src/libmgcp/mgcp_network.c b/openbsc/src/libmgcp/mgcp_network.c index 9ff29439e..91a97047e 100644 --- a/openbsc/src/libmgcp/mgcp_network.c +++ b/openbsc/src/libmgcp/mgcp_network.c @@ -34,6 +34,7 @@ #include <openbsc/mgcp.h> #include <openbsc/mgcp_internal.h> +#include <openbsc/rtp_rfc.h> #warning "Make use of the rtp proxy code" @@ -41,32 +42,6 @@ #include <sys/param.h> #include <limits.h> -#ifndef __BYTE_ORDER -#error "__BYTE_ORDER should be defined by someone" -#endif - -/* according to rtp_proxy.c RFC 3550 */ -struct rtp_hdr { -#if __BYTE_ORDER == __LITTLE_ENDIAN - uint8_t csrc_count:4, - extension:1, - padding:1, - version:2; - uint8_t payload_type:7, - marker:1; -#elif __BYTE_ORDER == __BIG_ENDIAN - uint8_t version:2, - padding:1, - extension:1, - csrc_count:4; - uint8_t marker:1, - payload_type:7; -#endif - uint16_t sequence; - uint32_t timestamp; - uint32_t ssrc; -} __attribute__((packed)); - enum { DEST_NETWORK = 0, |