patch-2.4.20 linux-2.4.20/net/ipv6/reassembly.c
Next file: linux-2.4.20/net/ipv6/route.c
Previous file: linux-2.4.20/net/ipv6/netfilter/ip6t_length.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/net/ipv6/reassembly.c
- Orig date:
Thu Apr 12 12:11:39 2001
diff -urN linux-2.4.19/net/ipv6/reassembly.c linux-2.4.20/net/ipv6/reassembly.c
@@ -372,7 +372,7 @@
csum_partial(skb->nh.raw, (u8*)(fhdr+1)-skb->nh.raw, 0));
/* Is this the final fragment? */
- if (!(fhdr->frag_off & __constant_htons(0x0001))) {
+ if (!(fhdr->frag_off & htons(0x0001))) {
/* If we already have some bits beyond end
* or have different end, the segment is corrupted.
*/
@@ -648,7 +648,7 @@
hdr = skb->nh.ipv6h;
fhdr = (struct frag_hdr *)skb->h.raw;
- if (!(fhdr->frag_off & __constant_htons(0xFFF9))) {
+ if (!(fhdr->frag_off & htons(0xFFF9))) {
/* It is not a fragmented frame */
skb->h.raw += sizeof(struct frag_hdr);
IP6_INC_STATS_BH(Ip6ReasmOKs);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)