diff options
-rw-r--r-- | include/linux/skbuff.h | 2 | ||||
-rw-r--r-- | net/ipv6/ip6_output.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 85577a4ffa61..7fc9a3aaa1c9 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -139,7 +139,7 @@ struct skb_shared_info { | |||
139 | /* Warning: this field is not always filled in (UFO)! */ | 139 | /* Warning: this field is not always filled in (UFO)! */ |
140 | unsigned short gso_segs; | 140 | unsigned short gso_segs; |
141 | unsigned short gso_type; | 141 | unsigned short gso_type; |
142 | unsigned int ip6_frag_id; | 142 | __be32 ip6_frag_id; |
143 | struct sk_buff *frag_list; | 143 | struct sk_buff *frag_list; |
144 | skb_frag_t frags[MAX_SKB_FRAGS]; | 144 | skb_frag_t frags[MAX_SKB_FRAGS]; |
145 | }; | 145 | }; |
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 9ff1be1bc2e7..93330685adfc 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
@@ -267,7 +267,7 @@ int ip6_nd_hdr(struct sock *sk, struct sk_buff *skb, struct net_device *dev, | |||
267 | hdr = (struct ipv6hdr *) skb_put(skb, sizeof(struct ipv6hdr)); | 267 | hdr = (struct ipv6hdr *) skb_put(skb, sizeof(struct ipv6hdr)); |
268 | skb->nh.ipv6h = hdr; | 268 | skb->nh.ipv6h = hdr; |
269 | 269 | ||
270 | *(u32*)hdr = htonl(0x60000000); | 270 | *(__be32*)hdr = htonl(0x60000000); |
271 | 271 | ||
272 | hdr->payload_len = htons(len); | 272 | hdr->payload_len = htons(len); |
273 | hdr->nexthdr = proto; | 273 | hdr->nexthdr = proto; |
@@ -571,7 +571,7 @@ static int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *)) | |||
571 | struct ipv6hdr *tmp_hdr; | 571 | struct ipv6hdr *tmp_hdr; |
572 | struct frag_hdr *fh; | 572 | struct frag_hdr *fh; |
573 | unsigned int mtu, hlen, left, len; | 573 | unsigned int mtu, hlen, left, len; |
574 | u32 frag_id = 0; | 574 | __be32 frag_id = 0; |
575 | int ptr, offset = 0, err=0; | 575 | int ptr, offset = 0, err=0; |
576 | u8 *prevhdr, nexthdr = 0; | 576 | u8 *prevhdr, nexthdr = 0; |
577 | 577 | ||