Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZhouShuya
OpenXG-RAN
Commits
434b6bb6
Commit
434b6bb6
authored
Feb 03, 2015
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6460
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
e8f0b9b1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
+11
-12
openair2/NETWORK_DRIVER/UE_IP/common.c
openair2/NETWORK_DRIVER/UE_IP/common.c
+2
-3
openair2/NETWORK_DRIVER/UE_IP/constant.h
openair2/NETWORK_DRIVER/UE_IP/constant.h
+7
-7
openair2/NETWORK_DRIVER/UE_IP/netlink.c
openair2/NETWORK_DRIVER/UE_IP/netlink.c
+2
-2
No files found.
openair2/NETWORK_DRIVER/UE_IP/common.c
View file @
434b6bb6
...
...
@@ -105,7 +105,6 @@ ue_ip_common_class_wireless2ip(
hard_header_len
=
ue_ip_dev
[
instP
]
->
hard_header_len
;
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);
skb_p
->
pkt_type
=
PACKET_HOST
;
...
...
@@ -129,7 +128,7 @@ ue_ip_common_class_wireless2ip(
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
)
{
case
6
:
...
...
@@ -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
);
#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
);
protocol
=
network_header_p
->
protocol
;
...
...
openair2/NETWORK_DRIVER/UE_IP/constant.h
View file @
434b6bb6
...
...
@@ -44,18 +44,18 @@
#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_RELEASE_DEFAULT 2
#define UE_IP_TIMER_ESTABLISHMENT_DEFAULT
(int)
12
#define UE_IP_TIMER_RELEASE_DEFAULT
(int)
2
#define UE_IP_TIMER_IDLE UINT_MAX
#define UE_IP_TIMER_TICK HZ
#define UE_IP_PDCPH_SIZE sizeof(struct pdcp_data_req_header_s)
#define UE_IP_IPV4_SIZE 20
#define UE_IP_IPV6_SIZE 40
#define UE_IP_PDCPH_SIZE
(int)
sizeof(struct pdcp_data_req_header_s)
#define UE_IP_IPV4_SIZE
(int)
20
#define UE_IP_IPV6_SIZE
(int)
40
...
...
openair2/NETWORK_DRIVER/UE_IP/netlink.c
View file @
434b6bb6
...
...
@@ -61,7 +61,7 @@ int ue_ip_netlink_init(void);
static
struct
sock
*
nas_nl_sk
=
NULL
;
static
int
exit_netlink_thread
=
0
;
#if
def
LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)
struct
netlink_kernel_cfg
cfg
=
{
.
input
=
nas_nl_data_ready
,
};
...
...
@@ -107,7 +107,7 @@ int ue_ip_netlink_init(void)
nas_nl_sk
=
netlink_kernel_create
(
&
init_net
,
#if
def
LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)
NAS_NETLINK_ID
,
&
cfg
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment