Skip to contentSkip to conversation

ip_options_fragment() has no effect on fragmentation

PATCH [email protected] 2 participants 3 messages May 8, 2006 3 messages not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 001701c6277a$eaa93950$cfa0220a@WeiYJ

A message that is not in the archive (sent off-list or not yet received): 1138821701.3852.8.camel@L-tech1

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Hello Mr. David:

Does this patch will be used?

This patch resolved the following problem: When I send IPv4 packet(contain Record Route Option) which need to be fragmented to the router, the router can not fragment it correctly. After fragmented by router, the second fragmentation still contain Record Route Option. Refer to RFC791, Record Route Option must Not be copied on fragmentation, goes in first fragment only.

Quoted 11 lines · David S. Miller

From: Wei Yongjun <[email protected]>
Date: Wed, 01 Feb 2006 14:21:41 -0500

Your patch is still corrupt, new lines were added by your email client which splits up the patch headers.

I applied the patch by hand, but next time I won't put so much effort into fixing up your work. Please learn how to submit patches properly.

Thank you.

net/ipv4/ip_options.c 2006-01-27 09:12:21.857619848 +0900 renamed from net/ipv4/ip_options.c.orig 2006-01-27 09:14:33.463612696 +0900 +1 -1
@@ -207,7 +207,7 @@
 
 void ip_options_fragment(struct sk_buff * skb) 
 {
- unsigned char * optptr = skb->nh.raw;
+ unsigned char * optptr = skb->nh.raw + sizeof(struct iphdr);
  struct ip_options * opt = &(IPCB(skb)->opt);
  int  l = opt->optlen;
  int  optlen;
maintainer
#5 lore raw
In reply to [email protected]

From: [email protected]
Date: Fri, 5 May 2006 13:50:02 -0400

Quoted 8 lines

Does this patch will be used?

This patch resolved the following problem: When I send IPv4 packet(contain Record Route Option) which need to be fragmented to the router, the router can not fragment it correctly. After fragmented by router, the second fragmentation still contain Record Route Option. Refer to RFC791, Record Route Option must Not be copied on fragmentation, goes in first fragment only.

Actually it didn't get applied for some reason.

Please resubmit it properly with a full changelog and "Signed-off-by: " lines, and make double sure that your email client does not corrupt the patch so that I may apply it cleanly. Test this by sending it to yourself and trying to apply the patch.

Thanks.