[Xorp-users] OLSR on Linux?
Ben Greear
greearb at candelatech.com
Wed Jul 1 13:31:50 PDT 2009
On 07/01/2009 11:47 AM, Ben Greear wrote:
> Has anyone ever used OLSR on Linux with more than one interface? I couldn't get it to work without
> the patch below, but maybe that's because of other patches I've added
> to xorp?
>
> With the below it starts, at least...not sure if it actually works yet.
Actually, that patch is broken. This one seems to get me a bit farther:
[greearb at ben-dt2 olsr]$ git diff
diff --git a/fea/data_plane/io/io_tcpudp_socket.cc b/fea/data_plane/io/io_tcpudp_socket.cc
index bfa23bd..d0174ae 100644
--- a/fea/data_plane/io/io_tcpudp_socket.cc
+++ b/fea/data_plane/io/io_tcpudp_socket.cc
@@ -754,6 +754,12 @@ IoTcpUdpSocket::udp_open_bind_broadcast(const string& ifname,
comm_get_last_error_str());
return (XORP_ERROR);
}
+ ret_value = comm_set_reuseaddr(_socket_fd, 1);
+ if (ret_value != XORP_OK) {
+ error_msg = c_format("Cannot enable address re-use: %s",
+ comm_get_last_error_str());
+ return (XORP_ERROR);
+ }
}
// 2b. On Linux, bind socket to device (SO_BINDTODEVICE).
--
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc http://www.candelatech.com
More information about the Xorp-users
mailing list