lkml.org 
[lkml]   [2003]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: ipsec-tools 0.1 + kernel 2.5.64
Date
Sorry, that was the wrong patch.

Try this one.

-derek

diff -u -r1.4 grabmyaddr.c
--- src/racoon/grabmyaddr.c 5 Mar 2003 18:54:08 -0000 1.4
+++ src/racoon/grabmyaddr.c 5 Mar 2003 19:54:17 -0000
@@ -65,10 +65,13 @@
#include "isakmp_var.h"
#include "gcmalloc.h"

-#if defined(__linux__) && !defined(HAVE_GETIFADDRS)
+#ifdef __linux__
+#include <linux/rtnetlink.h>
+ifndef HAVE_GETIFADDRS
#define HAVE_GETIFADDRS
#define NEED_LINUX_GETIFADDRS
#endif
+#endif

#ifndef HAVE_GETIFADDRS
static unsigned int if_maxindex __P((void));
@@ -93,8 +96,6 @@
struct sockaddr *ifa_addr;
struct sockaddr_storage ifa_addrbuf;
};
-
-#include <linux/rtnetlink.h>

__u32 nl_pid;
int nl_rescan;

--
Derek Atkins
Computer and Internet Security Consultant
derek@ihtfp.com www.ihtfp.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.052 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site