func NewRouter(arp ARP, address, netmask Address, gateway *Address) Router {
	return &router{
		arp:     arp,
		address: address,
		netmask: netmask,
		gateway: gateway,
	}
}
// NewRouter creates a default router.
//
// ARP is used to resolve local addresses. Otherwise, the MAC address of
// the gateway is returned.
//
// Specifying a gateway is optional.
NewRouter creates a default router.

ARP is used to resolve local addresses. Otherwise, the MAC address of
the gateway is returned.

Specifying a gateway is optional.
// NewRouter creates a default router . // // ARP is used to resolve local addresses . Otherwise the MAC address of // the gateway is returned . // // Specifying a gateway is optional .
func NewRouter(arp ARP, address, netmask Address, gateway *Address) Router {
	return &router{
		arp:     arp,
		address: address,
		netmask: netmask,
		gateway: gateway,
	}
}
func NewRouter ( arp ARP , address , netmask Address , gateway * Address ) Router { return & router { arp : arp , address : address , netmask : netmask , gateway : gateway , } }
NewRouter creates a default router.
NewRouter creates a default router .