func NewLayer(nic NIC) Layer {
	l := &layer{
		mac:      nic.GetMAC(),
		nic:      nic,
		channels: make(map[EtherType]chan Packet),
	}
	go l.run()
	return l
}
// NewLayer will receive packets from a NIC.
NewLayer will receive packets from a NIC.
// NewLayer will receive packets from a NIC .
func NewLayer(nic NIC) Layer {
	l := &layer{
		mac:      nic.GetMAC(),
		nic:      nic,
		channels: make(map[EtherType]chan Packet),
	}
	go l.run()
	return l
}
func NewLayer ( nic NIC ) Layer { l := & layer { mac : nic . GetMAC ( ) , nic : nic , channels : make ( map [ EtherType ] chan Packet ) , } go l . run ( ) return l }
NewLayer will receive packets from a NIC.
NewLayer will receive packets from a NIC .