Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dyyu
openairinterface5G
Commits
0a06d51c
Commit
0a06d51c
authored
Apr 28, 2015
by
gauthier
Browse files
bug MTU
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@7284
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
905fbeda
Changes
1
Hide whitespace changes
Inline
Side-by-side
openair-cn/GTPV1-U/GTPUAH/xt_GTPUAH.c
View file @
0a06d51c
...
...
@@ -268,7 +268,7 @@ _gtpuah_tg4_add(struct sk_buff *old_skb_pP, const struct xt_action_param *par_pP
/* Create a new copy of the original skb...can't avoid :-( */
if
((
orig_iplen
+
headroom_reqd
)
<=
mtu
)
{
if
((
orig_iplen
+
sizeof
(
struct
iphdr
)
+
sizeof
(
struct
udphdr
)
+
sizeof
(
struct
gtpuhdr
)
)
<=
mtu
)
{
new_skb_p
=
alloc_skb
(
headroom_reqd
+
orig_iplen
,
GFP_ATOMIC
);
...
...
@@ -326,7 +326,6 @@ _gtpuah_tg4_add(struct sk_buff *old_skb_pP, const struct xt_action_param *par_pP
new_iph_p
->
check
=
ip_fast_csum
((
unsigned
char
*
)
new_iph_p
,
new_iph_p
->
ihl
);
skb_reset_network_header
(
new_skb_p
);
// CHECKSUM_NONE, CHECKSUM_UNNECESSARY, CHECKSUM_COMPLETE, CHECKSUM_PARTIAL
new_skb_p
->
ip_summed
=
CHECKSUM_NONE
;
new_skb_p
->
mark
=
old_skb_pP
->
mark
;
...
...
@@ -386,7 +385,8 @@ _gtpuah_tg4_add(struct sk_buff *old_skb_pP, const struct xt_action_param *par_pP
NIPADDR
(
old_iph_p
->
saddr
),
NIPADDR
(
old_iph_p
->
daddr
),
NIPADDR
(
new_iph_p
->
saddr
),
NIPADDR
(
new_iph_p
->
daddr
));
NIPADDR
(
new_iph_p
->
daddr
),
new_skb_p
->
len
);
#if defined(TRACE_IN_KERN_LOG)
_gtpuah_print_hex_octets
(
...
...
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