[Xorp-hackers] xorp svn VRRP centos

Eric S. Johnson esj at cs.fiu.edu
Wed Feb 24 07:57:20 PST 2010


Ok, I got VRRP to  *almost* work with SVN xorp on Centos 5.
Without patch below it will start, but will crash as soon as 
it becomes master for an interface.

It is a hack patch, because basically there are two defines 
that scons doesn't catch and make, but configure used to...
There is probably a better way to do this with scons... 

But now I think I am about where I was with 1.6 back last fall.

What happens now when you become master is:

xorp will report it is master 
xorp will change the MAC on the interface to appropriate virtual mac.
xorp doesn't seem to add the virtual IP to the interface.
(you can manually add via "ip addr add blah dev blah"  on the
command line and it seems to work.)
xorp starts logging errors of the type: 

[ 2010/02/24 10:04:19 WARNING xorp_fea FEA ] Received packet on interface eth0.21 vif eth0.21: packet is too short (captured 56 expecting at least 60 octets)

(which I remember from playing with 1.6 last fall too, but don't remember 
what I found out when investigating)

So anyway, Ill be probing further as time permits.

E


---

diff -ru xorp-svn-20100217.orig/fea/data_plane/ifconfig/ifconfig_set_netlink_socket.cc xorp-svn-20100217/fea/data_plane/ifconfig/ifconfig_set_netlink_socket.cc
--- xorp-svn-20100217.orig/fea/data_plane/ifconfig/ifconfig_set_netlink_socket.cc       2010-02-17 10:25:17.000000000 -0500
+++ xorp-svn-20100217/fea/data_plane/ifconfig/ifconfig_set_netlink_socket.cc    2010-02-24 10:27:49.000000000 -0500
@@ -538,6 +538,8 @@
     else
        interface_flags &= ~IFF_UP;
 
+// ESJ
+#define HAVE_NETLINK_SOCKETS_SET_FLAGS_IS_BROKEN
 #ifndef HAVE_NETLINK_SOCKETS_SET_FLAGS_IS_BROKEN
     static const size_t        buffer_size = sizeof(struct nlmsghdr)
        + sizeof(struct ifinfomsg) + 2*sizeof(struct rtattr) + 512;
diff -ru xorp-svn-20100217.orig/fea/data_plane/io/io_link_pcap.hh xorp-svn-20100217/fea/data_plane/io/io_link_pcap.hh
--- xorp-svn-20100217.orig/fea/data_plane/io/io_link_pcap.hh    2010-02-17 10:25:18.000000000 -0500
+++ xorp-svn-20100217/fea/data_plane/io/io_link_pcap.hh 2010-02-23 16:39:18.000000000 -0500
@@ -34,6 +34,7 @@
 
 #ifdef HAVE_PCAP_H
 #include <pcap.h>
+#define HAVE_PCAP
 #endif
 
 #include "fea/io_link.hh"





More information about the Xorp-hackers mailing list