Remove gratuitous ARP plumbing which breaks Solaris 10
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 19 Apr 2012 19:22:07 +0000 (20:22 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 19 Apr 2012 19:22:07 +0000 (20:22 +0100)
Suggested by Kazuyoshi Aizawa and tested on S10, S11, oi_151a with both
IPv6 and Legacy IP.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
tun.c

diff --git a/tun.c b/tun.c
index b3a7fb2..6fb898b 100644 (file)
--- a/tun.c
+++ b/tun.c
@@ -393,12 +393,6 @@ static int link_proto(int unit_nr, const char *devname, uint64_t flags)
                close(tun2_fd);
                return -1;
        }
-       if (ioctl(ip_fd, I_PUSH, "arp") < 0) {
-               perror(_("Can't push ARP"));
-               close(tun2_fd);
-               close(ip_fd);
-               return -1;
-       }
 
        mux_id = ioctl(ip_fd, I_LINK, tun2_fd);
        if (mux_id < 0) {