Commit 44f7d431 authored by Lionel Gauthier's avatar Lionel Gauthier

Very small fixes

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4796 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent dbc78cfb
......@@ -773,8 +773,8 @@ inline void MIH_C_LINK_TUPLE_ID_encode(Bit_Buffer_t* bbP, MIH_C_LINK_TUPLE_ID_T
MIH_C_LINK_ID_encode(bbP, &dataP->link_id);
MIH_C_CHOICE_encode(bbP, &dataP->choice);
switch (dataP->choice) {
case 0: break;
case 1: MIH_C_LINK_ADDR_encode(bbP, &dataP->_union.link_addr); break;
case MIH_C_LINK_TUPLE_ID_CHOICE_NULL: break;
case MIH_C_LINK_TUPLE_ID_CHOICE_LINK_ADDR: MIH_C_LINK_ADDR_encode(bbP, &dataP->_union.link_addr); break;
default:
printf("[MIH_C] ERROR NO KNOWN VALUE FOR ENCODING CHOICE OF MIH_C_LINK_TUPLE_ID_T %d\n", dataP->choice);
}
......@@ -785,8 +785,8 @@ inline void MIH_C_LINK_TUPLE_ID_decode(Bit_Buffer_t* bbP, MIH_C_LINK_TUPLE_ID_T
MIH_C_LINK_ID_decode(bbP, &dataP->link_id);
MIH_C_CHOICE_decode(bbP, &dataP->choice);
switch (dataP->choice) {
case 0: break;
case 1: MIH_C_LINK_ADDR_decode(bbP, &dataP->_union.link_addr); break;
case MIH_C_LINK_TUPLE_ID_CHOICE_NULL: break;
case MIH_C_LINK_TUPLE_ID_CHOICE_LINK_ADDR: MIH_C_LINK_ADDR_decode(bbP, &dataP->_union.link_addr); break;
default:
printf("[MIH_C] ERROR NO KNOWN VALUE FOR DECODING CHOICE OF MIH_C_LINK_TUPLE_ID_T %d\n", dataP->choice);
}
......
......@@ -5,6 +5,7 @@
#include <assert.h>
#include <string.h>
#include <arpa/inet.h>
#include <stdio.h>
//-----------------------------------------------------------------------------
#include "MIH_C_bit_buffer.h"
//-----------------------------------------------------------------------------
......
......@@ -1459,6 +1459,12 @@ TYPEDEF_UNSIGNED_INT1(MIH_C_LINK_PARAM_GEN)
* 6–255: (Reserved)
*/
TYPEDEF_UNSIGNED_INT1(MIH_C_LINK_PARAM_QOS)
#define MIH_C_LINK_PARAM_QOS_MAX_NUM_DIF_COS_SUPPORTED (MIH_C_LINK_PARAM_QOS_T)0
#define MIH_C_LINK_PARAM_QOS_MIN_PACKET_TRANSFER_DELAY_ALL_COS (MIH_C_LINK_PARAM_QOS_T)1
#define MIH_C_LINK_PARAM_QOS_AVG_PACKET_TRANSFER_DELAY_ALL_COS (MIH_C_LINK_PARAM_QOS_T)2
#define MIH_C_LINK_PARAM_QOS_MAX_PACKET_TRANSFER_DELAY_ALL_COS (MIH_C_LINK_PARAM_QOS_T)3
#define MIH_C_LINK_PARAM_QOS_STD_DEVIATION_PACKET_TRANSFER_DELAY (MIH_C_LINK_PARAM_QOS_T)4
#define MIH_C_LINK_PARAM_QOS_PACKET_LOSS_RATE_ALL_COS_FRAME_RATIO (MIH_C_LINK_PARAM_QOS_T)5
//-------------------------------------------
/*! \var MIH_C_LINK_PARAM_GG_T
* \ingroup MIH_C_F4_DATA_TYPES_FOR_LINKS_CODEC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment