fix essid setting in adhoc mode
[openwrt.git] / package / ipsec-tools / patches / 003-linux_2.6.19_rtnetlink_changes.diff
1 diff -ruN ipsec-tools-0.6.6-old/src/racoon/grabmyaddr.c ipsec-tools-0.6.6-new/src/racoon/grabmyaddr.c
2 --- ipsec-tools-0.6.6-old/src/racoon/grabmyaddr.c 2005-07-16 06:41:01.000000000 +0200
3 +++ ipsec-tools-0.6.6-new/src/racoon/grabmyaddr.c 2006-12-15 15:50:13.000000000 +0100
4 @@ -77,10 +77,17 @@
5 #ifdef __linux__
6 #include <linux/types.h>
7 #include <linux/rtnetlink.h>
8 +#include <linux/version.h>
9 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
10 +# include <linux/if_addr.h>
11 +#endif
12 #ifndef HAVE_GETIFADDRS
13 #define HAVE_GETIFADDRS
14 #define NEED_LINUX_GETIFADDRS
15 #endif
16 +#ifndef IFA_RTA
17 +# define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
18 +#endif
19 #endif
20
21 #ifndef HAVE_GETIFADDRS
This page took 0.056078 seconds and 5 git commands to generate.