Aiccu and multiple network cards
Shadow Hawkins on Wednesday, 22 August 2012 08:56:20
I have a Linux server that has two network cards and two outputs on the internet (sourcerouting).
How to make Aiccu (ayiya) connects to the eth1 instead of eth0 by default?
Aiccu and multiple network cards
Shadow Hawkins on Saturday, 25 August 2012 14:45:03
I managed to make a tunnel to work for eth1 but only in heartbeat mode.
This is my patch:
diff -ruN aiccu.old/common/aiccu_test.c aiccu/common/aiccu_test.c
--- aiccu.old/common/aiccu_test.c 2007-01-15 13:00:46.000000000 +0100
+++ aiccu/common/aiccu_test.c 2012-08-22 07:46:02.158532594 +0200
@@ -71,7 +71,7 @@
/* Make sure we have a correct local IPv4 address for some tests */
if (strcmp(hTunnel->sType, "6in4-static") != 0)
{
- heartbeat_socket(NULL, 0, "",
+ heartbeat_socket(NULL, 0, "eth1",
&hTunnel->sIPv4_Local,
hTunnel->sIPv4_POP,
NULL);
diff -ruN aiccu.old/common/heartbeat.c aiccu/common/heartbeat.c
--- aiccu.old/common/heartbeat.c 2006-12-21 15:08:50.000000000 +0100
+++ aiccu/common/heartbeat.c 2012-08-22 07:46:24.187303653 +0200
@@ -250,7 +250,7 @@
bool address_changed = false;
char *ipv4_local = NULL;
- SOCKET sockfd = heartbeat_socket(&address_changed, 0, "",
+ SOCKET sockfd = heartbeat_socket(&address_changed, 0, "eth1",
&ipv4_local,
hTunnel->sIPv4_POP,
NULL);
@@ -272,7 +272,7 @@
D(dolog(LOG_DEBUG, "heartbeat_beat() - Beating from %s\n", hTunnel->sIPv
- sockfd = heartbeat_socket(&address_changed, 0, "",
+ sockfd = heartbeat_socket(&address_changed, 0, "eth1",
&hTunnel->sIPv4_Local,
hTunnel->sIPv4_POP,
NULL);
Posting is only allowed when you are logged in. |