func SetupIface(ifaceName, newIfName string) error {
	ipt, err := iptables.New()
	if err != nil {
		return err
	}

	link, err := netlink.LinkByName(ifaceName)
	if err != nil {
		return err
	}
	if err := netlink.LinkSetName(link, newIfName); err != nil {
		return err
	}
	// This is only called by AttachContainer which is only called in host pid namespace
	if err := ConfigureARPCache("/proc", newIfName); err != nil {
		return err
	}
	if err := ipt.Append("filter", "INPUT", "-i", newIfName, "-d", "224.0.0.0/4", "-j", "DROP"); err != nil {
		return err
	}

	return nil
}
// SetupIface is the implementation of the 'setup-iface' call above,
// running in another process in the container's netns
SetupIface is the implementation of the 'setup-iface' call above,
running in another process in the container's netns
// SetupIface is the implementation of the ' setup - iface ' call above // running in another process in the container ' s netns
func SetupIface(ifaceName, newIfName string) error {
	ipt, err := iptables.New()
	if err != nil {
		return err
	}
	link, err := netlink.LinkByName(ifaceName)
	if err != nil {
		return err
	}
	if err := netlink.LinkSetName(link, newIfName); err != nil {
		return err
	}
	if err := ConfigureARPCache("/proc", newIfName); err != nil {
		return err
	}
	if err := ipt.Append("filter", "INPUT", "-i", newIfName, "-d", "224.0.0.0/4", "-j", "DROP"); err != nil {
		return err
	}
	return nil
}
func SetupIface ( ifaceName , newIfName string ) error { ipt , err := iptables . New ( ) if err != nil { return err } link , err := netlink . LinkByName ( ifaceName ) if err != nil { return err } if err := netlink . LinkSetName ( link , newIfName ) ; err != nil { return err } if err := ConfigureARPCache ( " " , newIfName ) ; err != nil { return err } if err := ipt . Append ( " " , " " , " " , newIfName , " " , " " , " " , " " ) ; err != nil { return err } return nil }
SetupIface is the implementation of the 'setup-iface' call above,
running in another process in the container's netns
SetupIface is the implementation of the ' setup - iface ' call above running in another process in the container ' s netns
// This is only called by AttachContainer which is only called in host pid namespace