Commit 0a06d51c authored by Lionel Gauthier's avatar Lionel Gauthier

bug MTU


git-svn-id: http://svn.eurecom.fr/openair4G/trunk@7284 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 905fbeda
......@@ -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(
......
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