[Openswan Users] compile problem with new openswan-2.6.14rc6

Paul Wouters paul at xelerance.com
Sun Jun 1 14:28:03 EDT 2008


On Sun, 1 Jun 2008, Chris Patch wrote:

> Subject: [Openswan Users] compile problem with new openswan-2.6.14rc6

I'll make an rc7, but try this patch:

diff -r openswan-2.6.14rc6/include/kernel_alg.h openswan-2.6.14rc6-fixed/include/kernel_alg.h
69c69
< #define ESP_EALG_PRESENT(algo) (((algo)<=SADB_EALG_MAX)&&(esp_ealg[(algo)].sadb_alg_id==(algo)))
---
> #define ESP_EALG_PRESENT(algo) (((algo)<=K_SADB_EALG_MAX)&&(esp_ealg[(algo)].sadb_alg_id==(algo)))
71c71
< 	for (algo=1; algo <= SADB_EALG_MAX; algo++) \
---
> 	for (algo=1; algo <= K_SADB_EALG_MAX; algo++) \
74c74
< 	for (algo=SADB_EALG_MAX; algo >0 ; algo--) \
---
> 	for (algo=K_SADB_EALG_MAX; algo >0 ; algo--) \
diff -r openswan-2.6.14rc6/include/linux/pfkeyv2.h openswan-2.6.14rc6-fixed/include/linux/pfkeyv2.h
51a52,53
> 	uint32_t sadb_x_lifetime_packets;
> 	uint32_t sadb_x_lifetime_reserved;
diff -r openswan-2.6.14rc6/linux/net/ipsec/pfkey_v2_build.c openswan-2.6.14rc6-fixed/linux/net/ipsec/pfkey_v2_build.c
384a385
>         pfkey_lifetime->sadb_x_lifetime_packets = packets;



More information about the Users mailing list