func configureInterface(intf *Interface) {
	// Found a match, going to try to make sure the interface is up
	err := nl.UpInterfacePoll(intf.LocalName())
	if err != nil {
		fmt.Fprintf(os.Stderr,
			"Interface %v could not be enabled. Networking will be broken.\n",
			intf.LocalName())
		return
	}
	baseMtu, err := nl.GetMtu("eth0")
	if err != nil || baseMtu < 1000 || baseMtu > 9001 {
		return
	}
	nl.SetMtu(intf.LocalName(), baseMtu)
}
// Fire and forget method to configure an interface
Fire and forget method to configure an interface
// Fire and forget method to configure an interface
func configureInterface(intf *Interface) {
	err := nl.UpInterfacePoll(intf.LocalName())
	if err != nil {
		fmt.Fprintf(os.Stderr,
			"Interface %v could not be enabled. Networking will be broken.\n",
			intf.LocalName())
		return
	}
	baseMtu, err := nl.GetMtu("eth0")
	if err != nil || baseMtu < 1000 || baseMtu > 9001 {
		return
	}
	nl.SetMtu(intf.LocalName(), baseMtu)
}
func configureInterface ( intf * Interface ) { err := nl . UpInterfacePoll ( intf . LocalName ( ) ) if err != nil { fmt . Fprintf ( os . Stderr , " \n " , intf . LocalName ( ) ) return } baseMtu , err := nl . GetMtu ( " " ) if err != nil || baseMtu < 1000 || baseMtu > 9001 { return } nl . SetMtu ( intf . LocalName ( ) , baseMtu ) }
Fire and forget method to configure an interface
Fire and forget method to configure an interface
// Found a match, going to try to make sure the interface is up