diff options
author | Nicolas Thill <nico@openwrt.org> | 2006-12-15 16:15:35 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2006-12-15 16:15:35 +0000 |
commit | 1dbc060dc46a4f560fe13914a59b19c120f408a0 (patch) | |
tree | 514e922297ed980db1e7d2d3149bc79e668f82d4 /package/ipsec-tools/patches/03-linux_2.6.19_rtnetlink_changes.diff | |
parent | 60a0c6674eda9631fb34203c09f2a41ad5718f96 (diff) | |
download | master-31e0f0ae-1dbc060dc46a4f560fe13914a59b19c120f408a0.tar.gz master-31e0f0ae-1dbc060dc46a4f560fe13914a59b19c120f408a0.tar.bz2 master-31e0f0ae-1dbc060dc46a4f560fe13914a59b19c120f408a0.zip |
update ipsec-tools to 0.6.6, add a patch to build on 2.6.19, use Configure template
SVN-Revision: 5800
Diffstat (limited to 'package/ipsec-tools/patches/03-linux_2.6.19_rtnetlink_changes.diff')
-rw-r--r-- | package/ipsec-tools/patches/03-linux_2.6.19_rtnetlink_changes.diff | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/ipsec-tools/patches/03-linux_2.6.19_rtnetlink_changes.diff b/package/ipsec-tools/patches/03-linux_2.6.19_rtnetlink_changes.diff new file mode 100644 index 0000000000..555290674c --- /dev/null +++ b/package/ipsec-tools/patches/03-linux_2.6.19_rtnetlink_changes.diff @@ -0,0 +1,21 @@ +diff -ruN ipsec-tools-0.6.6-old/src/racoon/grabmyaddr.c ipsec-tools-0.6.6-new/src/racoon/grabmyaddr.c +--- ipsec-tools-0.6.6-old/src/racoon/grabmyaddr.c 2005-07-16 06:41:01.000000000 +0200 ++++ ipsec-tools-0.6.6-new/src/racoon/grabmyaddr.c 2006-12-15 15:50:13.000000000 +0100 +@@ -77,10 +77,17 @@ + #ifdef __linux__ + #include <linux/types.h> + #include <linux/rtnetlink.h> ++#include <linux/version.h> ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++# include <linux/if_addr.h> ++#endif + #ifndef HAVE_GETIFADDRS + #define HAVE_GETIFADDRS + #define NEED_LINUX_GETIFADDRS + #endif ++#ifndef IFA_RTA ++# define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg)))) ++#endif + #endif + + #ifndef HAVE_GETIFADDRS |