Commit 795bda80 authored by Lionel Gauthier's avatar Lionel Gauthier

pdcp header size was not correct, since it changed in PDCP defs.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4932 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 62407561
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
*******************************************************************************/ *******************************************************************************/
/*! \file common.c /*! \file common.c
* \brief * \brief
* \author Navid Nikaein and Raymond Knopp, Lionel GAUTHIER * \author Navid Nikaein and Raymond Knopp, Lionel GAUTHIER
* \date 2013 * \date 2013
* \version 1.0 * \version 1.0
...@@ -226,7 +226,7 @@ void ue_ip_common_ip2wireless_drop(struct sk_buff *skb, int inst){ ...@@ -226,7 +226,7 @@ void ue_ip_common_ip2wireless_drop(struct sk_buff *skb, int inst){
// Request the transfer of data (QoS SAP) // Request the transfer of data (QoS SAP)
void ue_ip_common_ip2wireless(struct sk_buff *skb, int inst){ void ue_ip_common_ip2wireless(struct sk_buff *skb, int inst){
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
struct pdcp_data_req_header_t pdcph; struct pdcp_data_req_header_s pdcph;
struct ue_ip_priv *priv=netdev_priv(ue_ip_dev[inst]); struct ue_ip_priv *priv=netdev_priv(ue_ip_dev[inst]);
#ifdef LOOPBACK_TEST #ifdef LOOPBACK_TEST
int i; int i;
...@@ -306,7 +306,7 @@ void ue_ip_common_ip2wireless(struct sk_buff *skb, int inst){ ...@@ -306,7 +306,7 @@ void ue_ip_common_ip2wireless(struct sk_buff *skb, int inst){
void ue_ip_common_wireless2ip(struct nlmsghdr *nlh) { void ue_ip_common_wireless2ip(struct nlmsghdr *nlh) {
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
struct pdcp_data_ind_header_t *pdcph = (struct pdcp_data_ind_header_t *)NLMSG_DATA(nlh); struct pdcp_data_ind_header_s *pdcph = (struct pdcp_data_ind_header_s *)NLMSG_DATA(nlh);
struct ue_ip_priv *priv; struct ue_ip_priv *priv;
priv = netdev_priv(ue_ip_dev[pdcph->inst]); priv = netdev_priv(ue_ip_dev[pdcph->inst]);
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
#define UE_IP_TIMER_IDLE UINT_MAX #define UE_IP_TIMER_IDLE UINT_MAX
#define UE_IP_TIMER_TICK HZ #define UE_IP_TIMER_TICK HZ
#define UE_IP_PDCPH_SIZE sizeof(struct pdcp_data_req_header_t) #define UE_IP_PDCPH_SIZE sizeof(struct pdcp_data_req_header_s)
#define UE_IP_IPV4_SIZE 20 #define UE_IP_IPV4_SIZE 20
#define UE_IP_IPV6_SIZE 40 #define UE_IP_IPV6_SIZE 40
......
...@@ -91,16 +91,21 @@ struct ipversion { ...@@ -91,16 +91,21 @@ struct ipversion {
#endif #endif
}; };
typedef struct pdcp_data_req_header_t { typedef int traffic_type_t;
typedef struct pdcp_data_req_header_s {
unsigned int rb_id; unsigned int rb_id;
unsigned int data_size; unsigned int data_size;
int inst; int inst;
traffic_type_t traffic_type;
} pdcp_data_req_header_t; } pdcp_data_req_header_t;
typedef struct pdcp_data_ind_header_t { typedef struct pdcp_data_ind_header_s {
unsigned int rb_id; unsigned int rb_id;
unsigned int data_size; unsigned int data_size;
int inst; int inst;
int dummy;
} pdcp_data_ind_header_t; } pdcp_data_ind_header_t;
......
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