aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/netif
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2013-05-24 11:56:07 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2013-05-24 12:16:49 +0200
commit70214a15d1d575802d821c3555f61c3797a0a89b (patch)
treeb5cf3b05f2b25c93c6694b8044046c4c48f40df4 /include/osmocom/netif
parent9d6d126c230f480510622dbb1a0f13cdef640146 (diff)
osmux: further sanity checkings for AMR FT
According to RFC3267, AMR FT upper 9 should be discarded. This patch adds extra validation to make sure that input RTP traffic encapsulating AMR payload and OSMUX amr_ft field are OK with regards to that restriction.
Diffstat (limited to 'include/osmocom/netif')
-rw-r--r--include/osmocom/netif/amr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/netif/amr.h b/include/osmocom/netif/amr.h
index 21ba9da..863915e 100644
--- a/include/osmocom/netif/amr.h
+++ b/include/osmocom/netif/amr.h
@@ -78,6 +78,7 @@ static inline void *osmo_amr_get_payload(struct amr_hdr *amrh)
#define AMR_FT_SID 8 /* SID */
#define AMR_FT_MAX 9
+int osmo_amr_ft_valid(uint8_t amr_ft);
size_t osmo_amr_bytes(uint8_t amr_cmr);
#endif