AYIYA on FreeBSD 4.11 with AICCU
Shadow Hawkins on Sunday, 29 October 2006 03:45:02
On FreeBSD 4.11 AICCU has the same issues as DragonFlyBSD when using the AYIYA protocol. This patch for aiccu-2006.07.25 fixes the problem:
--- common/tun.c.orig Tue Jul 25 11:20:46 2006
+++ common/tun.c Sun Oct 29 03:21:54 2006
@@ -706,6 +706,9 @@
#ifndef _FREEBSD
int mode = IFF_MULTICAST | IFF_POINTOPOINT;
#endif
+#ifdef _FREEBSD
+ int mode = 0;
+#endif
/* Try the configured interface */
tun_log(LOG_DEBUG, "start", "Trying Configured TUN/TAP interface %s...\n", g_aiccu->ipv6_interface);
@@ -752,7 +755,7 @@
#endif
#endif
-#ifdef _DFBSD
+#if defined(_FREEBSD) || defined (_DFBSD)
tun_log(LOG_DEBUG, "start", "Setting TUNSIFHEAD for %s\n", g_aiccu->ipv6_interface);
mode = 1;
if (ioctl(tun_fd, TUNSIFHEAD, &mode, sizeof(mode)) == -1)
AYIYA on FreeBSD 4.11 with AICCU
Shadow Hawkins on Tuesday, 14 November 2006 04:31:06
Thanks for the patch... I needed to apply it on FreeBSD 6.1 as well
AYIYA on FreeBSD 4.11 with AICCU
Shadow Hawkins on Tuesday, 12 December 2006 02:24:11
This patch worked on 6.1-RELEASE for me.
FYI, there is a new PR for freebsd ports at http://www.freebsd.org/cgi/query-pr.cgi?pr=106053 with an updated makefile/tun.c patch/ and the 20060725 aiccu version. :)
Dan
http://dan.smith.name
Posting is only allowed when you are logged in. |