Commit 434b6bb6 authored by Lionel Gauthier's avatar Lionel Gauthier

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6460 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent e8f0b9b1
...@@ -105,7 +105,6 @@ ue_ip_common_class_wireless2ip( ...@@ -105,7 +105,6 @@ ue_ip_common_class_wireless2ip(
hard_header_len = ue_ip_dev[instP]->hard_header_len; hard_header_len = ue_ip_dev[instP]->hard_header_len;
skb_set_mac_header(skb_p, 0); skb_set_mac_header(skb_p, 0);
//skb_p->mac_header = skb_p->data;
//printk("[NAC_COMMIN_RECEIVE]: Packet Type %d (%d,%d)",skb_p->pkt_type,PACKET_HOST,PACKET_BROADCAST); //printk("[NAC_COMMIN_RECEIVE]: Packet Type %d (%d,%d)",skb_p->pkt_type,PACKET_HOST,PACKET_BROADCAST);
skb_p->pkt_type = PACKET_HOST; skb_p->pkt_type = PACKET_HOST;
...@@ -129,7 +128,7 @@ ue_ip_common_class_wireless2ip( ...@@ -129,7 +128,7 @@ ue_ip_common_class_wireless2ip(
skb_p->ip_summed = CHECKSUM_UNNECESSARY; skb_p->ip_summed = CHECKSUM_UNNECESSARY;
ipv_p = (struct ipversion *)&(skb_p->data[hard_header_len]); ipv_p = (ipversion_t *)((void*)&(skb_p->data[hard_header_len]));
switch (ipv_p->version) { switch (ipv_p->version) {
case 6: case 6:
...@@ -165,7 +164,7 @@ ue_ip_common_class_wireless2ip( ...@@ -165,7 +164,7 @@ ue_ip_common_class_wireless2ip(
printk("[UE_IP_DRV][%s] protocol %d\n",__FUNCTION__, ((struct iphdr *)&skb_p->data[hard_header_len])->protocol); printk("[UE_IP_DRV][%s] protocol %d\n",__FUNCTION__, ((struct iphdr *)&skb_p->data[hard_header_len])->protocol);
#endif #endif
skb_p->network_header = &skb_p->data[hard_header_len]; skb_set_network_header(skb_p, hard_header_len);
//network_header_p = (struct iphdr *)skb_network_header(skb_p); //network_header_p = (struct iphdr *)skb_network_header(skb_p);
network_header_p = (struct iphdr *)skb_network_header(skb_p); network_header_p = (struct iphdr *)skb_network_header(skb_p);
protocol = network_header_p->protocol; protocol = network_header_p->protocol;
......
...@@ -44,18 +44,18 @@ ...@@ -44,18 +44,18 @@
#define UE_IP_RESET_RX_FLAGS 0 #define UE_IP_RESET_RX_FLAGS 0
#define UE_IP_RETRY_LIMIT_DEFAULT 5 #define UE_IP_RETRY_LIMIT_DEFAULT (int)5
#define UE_IP_MESSAGE_MAXLEN 5004 #define UE_IP_MESSAGE_MAXLEN (int)5004
#define UE_IP_TIMER_ESTABLISHMENT_DEFAULT 12 #define UE_IP_TIMER_ESTABLISHMENT_DEFAULT (int)12
#define UE_IP_TIMER_RELEASE_DEFAULT 2 #define UE_IP_TIMER_RELEASE_DEFAULT (int)2
#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_s) #define UE_IP_PDCPH_SIZE (int)sizeof(struct pdcp_data_req_header_s)
#define UE_IP_IPV4_SIZE 20 #define UE_IP_IPV4_SIZE (int)20
#define UE_IP_IPV6_SIZE 40 #define UE_IP_IPV6_SIZE (int)40
......
...@@ -61,7 +61,7 @@ int ue_ip_netlink_init(void); ...@@ -61,7 +61,7 @@ int ue_ip_netlink_init(void);
static struct sock *nas_nl_sk = NULL; static struct sock *nas_nl_sk = NULL;
static int exit_netlink_thread=0; static int exit_netlink_thread=0;
#ifdef LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0) #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)
struct netlink_kernel_cfg cfg = { struct netlink_kernel_cfg cfg = {
.input = nas_nl_data_ready, .input = nas_nl_data_ready,
}; };
...@@ -107,7 +107,7 @@ int ue_ip_netlink_init(void) ...@@ -107,7 +107,7 @@ int ue_ip_netlink_init(void)
nas_nl_sk = netlink_kernel_create( nas_nl_sk = netlink_kernel_create(
&init_net, &init_net,
#ifdef LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0) #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)
NAS_NETLINK_ID, NAS_NETLINK_ID,
&cfg &cfg
#else #else
......
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