]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[IPV6]: 'info' argument of ipv6 ->err_handler() is net-endian
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 8 Nov 2006 08:21:01 +0000 (00:21 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:21:12 +0000 (21:21 -0800)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
14 files changed:
include/net/protocol.h
include/net/rawv6.h
include/net/xfrm.h
net/ipv6/ah6.c
net/ipv6/esp6.c
net/ipv6/icmp.c
net/ipv6/ip6_tunnel.c
net/ipv6/ipcomp6.c
net/ipv6/raw.c
net/ipv6/tcp_ipv6.c
net/ipv6/tunnel6.c
net/ipv6/udp.c
net/ipv6/xfrm6_tunnel.c
net/sctp/ipv6.c

index c643bce64e552d0789facb53ebec5697e3ecd88b..28c4cac3f8a2733b9f582cc3be1b9bc591022c21 100644 (file)
@@ -50,7 +50,7 @@ struct inet6_protocol
        void    (*err_handler)(struct sk_buff *skb,
                               struct inet6_skb_parm *opt,
                               int type, int code, int offset,
-                              __u32 info);
+                              __be32 info);
 
        int     (*gso_send_check)(struct sk_buff *skb);
        struct sk_buff *(*gso_segment)(struct sk_buff *skb,
index 14476a71725e56467fe934611d3ec2f7e659abb6..af8960878ef41c72df5238a2304fc6bca643ef94 100644 (file)
@@ -21,7 +21,7 @@ extern void                   rawv6_err(struct sock *sk,
                                          struct sk_buff *skb,
                                          struct inet6_skb_parm *opt,
                                          int type, int code, 
-                                         int offset, u32 info);
+                                         int offset, __be32 info);
 
 #endif
 
index a63e277bacf747982d7348c43e75090cd0ccee8c..9d30c08b9efc23b0675ef7a867dd5a1e4bf58c8f 100644 (file)
@@ -887,8 +887,7 @@ struct xfrm_tunnel {
 struct xfrm6_tunnel {
        int (*handler)(struct sk_buff *skb);
        int (*err_handler)(struct sk_buff *skb, struct inet6_skb_parm *opt,
-                          int type, int code, int offset, __u32 info);
-
+                          int type, int code, int offset, __be32 info);
        struct xfrm6_tunnel *next;
        int priority;
 };
index b0d83e8e425278df5727c087593136085afa7838..2d9e495cf691224dd80cfcf46d7a56f43c5358f2 100644 (file)
@@ -397,7 +397,7 @@ out:
 }
 
 static void ah6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, 
-                    int type, int code, int offset, __u32 info)
+                    int type, int code, int offset, __be32 info)
 {
        struct ipv6hdr *iph = (struct ipv6hdr*)skb->data;
        struct ip_auth_hdr *ah = (struct ip_auth_hdr*)(skb->data+offset);
index e78680a9985b2cf86a1b6671c1a73a258973a57c..25dcf69cd807beca9b533bd2728c6d337ea1ce86 100644 (file)
@@ -256,7 +256,7 @@ static u32 esp6_get_max_size(struct xfrm_state *x, int mtu)
 }
 
 static void esp6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
-                     int type, int code, int offset, __u32 info)
+                     int type, int code, int offset, __be32 info)
 {
        struct ipv6hdr *iph = (struct ipv6hdr*)skb->data;
        struct ipv6_esp_hdr *esph = (struct ipv6_esp_hdr*)(skb->data+offset);
index 4ec876066b3fd1f860882b7601e110cc2db2aa2e..81bd45b26c981b95debca3cd52d903d5fbf94db8 100644 (file)
@@ -555,7 +555,7 @@ out:
        icmpv6_xmit_unlock();
 }
 
-static void icmpv6_notify(struct sk_buff *skb, int type, int code, u32 info)
+static void icmpv6_notify(struct sk_buff *skb, int type, int code, __be32 info)
 {
        struct in6_addr *saddr, *daddr;
        struct inet6_protocol *ipprot;
index b9f40290d12ac35eb7bb55ac5a1ccce14a524628..6a3026dd865ab680f5ae6b0bd6bc31fc8bed3819 100644 (file)
@@ -391,7 +391,7 @@ parse_tlv_tnl_enc_lim(struct sk_buff *skb, __u8 * raw)
 
 static int
 ip6ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
-          int type, int code, int offset, __u32 info)
+          int type, int code, int offset, __be32 info)
 {
        struct ipv6hdr *ipv6h = (struct ipv6hdr *) skb->data;
        struct ip6_tnl *t;
index 71f59f18ede820749317fe333c96221fee58ce5f..511730b67e97fb0ba1f9d167c07e120ea3b34f6a 100644 (file)
@@ -176,7 +176,7 @@ out_ok:
 }
 
 static void ipcomp6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
-                               int type, int code, int offset, __u32 info)
+                               int type, int code, int offset, __be32 info)
 {
        __be32 spi;
        struct ipv6hdr *iph = (struct ipv6hdr*)skb->data;
index d6dedc4aec7794eae523a7b75956e422dd5432e2..6bc66552442c0b7dcb01da6de3c475aa3cd9a97d 100644 (file)
@@ -290,7 +290,7 @@ out:
 
 void rawv6_err(struct sock *sk, struct sk_buff *skb,
               struct inet6_skb_parm *opt,
-              int type, int code, int offset, u32 info)
+              int type, int code, int offset, __be32 info)
 {
        struct inet_sock *inet = inet_sk(sk);
        struct ipv6_pinfo *np = inet6_sk(sk);
index 4c2a7c0cafef2db93c05e95f1345b02affca3ea9..eb6d145ecfd785d572c2dc60e52f99097356405b 100644 (file)
@@ -310,7 +310,7 @@ failure:
 }
 
 static void tcp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
-               int type, int code, int offset, __u32 info)
+               int type, int code, int offset, __be32 info)
 {
        struct ipv6hdr *hdr = (struct ipv6hdr*)skb->data;
        const struct tcphdr *th = (struct tcphdr *)(skb->data+offset);
index 0ef9a35798d13915eb158e54ee58800ca058168a..918d07dd12197f7da36820cd8010e0192a1cb4a4 100644 (file)
@@ -104,7 +104,7 @@ drop:
 }
 
 static void tunnel6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
-                       int type, int code, int offset, __u32 info)
+                       int type, int code, int offset, __be32 info)
 {
        struct xfrm6_tunnel *handler;
 
index c83f23e51c469a11bd388eab97b9d80a345db876..886300d13a59bdb6ab2e0595c13ea63a4aa81952 100644 (file)
@@ -238,7 +238,7 @@ csum_copy_err:
 }
 
 static void udpv6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
-              int type, int code, int offset, __u32 info)
+              int type, int code, int offset, __be32 info)
 {
        struct ipv6_pinfo *np;
        struct ipv6hdr *hdr = (struct ipv6hdr*)skb->data;
index f26d81b6342c69fc23cc47dc1789f51a400edd1d..01a5c52a2be324748d0e037e78d5bb7e226f3a90 100644 (file)
@@ -265,7 +265,7 @@ static int xfrm6_tunnel_rcv(struct sk_buff *skb)
 }
 
 static int xfrm6_tunnel_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
-                           int type, int code, int offset, __u32 info)
+                           int type, int code, int offset, __be32 info)
 {
        /* xfrm6_tunnel native err handling */
        switch (type) {
index 78071c6e6cf10522a3e35162c12ec06cba383a1b..3c316c688ade268e32d93cabe88b6d3dc5edf9ca 100644 (file)
@@ -84,7 +84,7 @@ static struct notifier_block sctp_inet6addr_notifier = {
 
 /* ICMP error handler. */
 SCTP_STATIC void sctp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
-                            int type, int code, int offset, __u32 info)
+                            int type, int code, int offset, __be32 info)
 {
        struct inet6_dev *idev;
        struct ipv6hdr *iph = (struct ipv6hdr *)skb->data;