netdev
[Top] [All Lists]

Re: [IPSEC] Store idev entries

To: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [IPSEC] Store idev entries
From: Patrick McHardy <kaber@xxxxxxxxx>
Date: Wed, 04 May 2005 03:23:29 +0200
Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>, yoshfuji@xxxxxxxxxxxxxx, kazunori@xxxxxxxxxxxx, netdev@xxxxxxxxxxx, usagi-core@xxxxxxxxxxxxxx
In-reply-to: <20050504011956.GA20670@xxxxxxxxxxxxxxxxxxx>
References: <4272EC95.20401@xxxxxxxxxxxx> <20050430.120736.45974367.yoshfuji@xxxxxxxxxxxxxx> <20050430031159.GA24326@xxxxxxxxxxxxxxxxxxx> <20050430082339.GA20338@xxxxxxxxxxxxxxxxxxx> <20050430114349.GA24573@xxxxxxxxxxxxxxxxxxx> <20050503162628.7541807d.davem@xxxxxxxxxxxxx> <42782025.3010700@xxxxxxxxx> <20050504011204.GA19740@xxxxxxxxxxxxxxxxxxx> <20050504011956.GA20670@xxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.7) Gecko/20050420 Debian/1.7.7-2
Herbert Xu wrote:
>>Hmm, I wonder why I didn't see this.  Anyway, could you please add
>>the include to addrconf.h instead?
> 
> Aha, I can see it if I do something like this.
> 
> 
> ------------------------------------------------------------------------
> 
> ===== include/asm-i386/checksum.h 1.14 vs edited =====
> --- 1.14/include/asm-i386/checksum.h  2005-01-16 22:58:42 +11:00
> +++ edited/include/asm-i386/checksum.h        2005-05-04 11:17:09 +10:00
> @@ -1,8 +1,6 @@
>  #ifndef _I386_CHECKSUM_H
>  #define _I386_CHECKSUM_H
>  
> -#include <linux/in6.h>
> -
>  /*
>   * computes the checksum of a memory block at buff, length len,
>   * and adds in "sum" (32-bit)
> @@ -145,6 +143,7 @@
>  }
>  
>  #define _HAVE_ARCH_IPV6_CSUM
> +struct in6_addr;
>  static __inline__ unsigned short int csum_ipv6_magic(struct in6_addr *saddr,
>                                                    struct in6_addr *daddr,
>                                                    __u32 len,

I use x86_64, which explains why I saw the error:

struct in6_addr;

#define _HAVE_ARCH_IPV6_CSUM 1
csum_ipv6_magic(struct in6_addr *saddr, struct in6_addr *daddr,
                __u32 len, unsigned short proto, unsigned int sum);

Regards
Patrick

<Prev in Thread] Current Thread [Next in Thread>