func NewLayer(ip ipv4.Layer) Layer {
	l := &layer{
		ip:       ip,
		channels: make(map[uint16]chan Packet),
	}
	go l.run()
	return l
}
// NewLayer creates a new instance of the default UDP layer.
NewLayer creates a new instance of the default UDP layer.
// NewLayer creates a new instance of the default UDP layer .
func NewLayer(ip ipv4.Layer) Layer {
	l := &layer{
		ip:       ip,
		channels: make(map[uint16]chan Packet),
	}
	go l.run()
	return l
}
func NewLayer ( ip ipv4 . Layer ) Layer { l := & layer { ip : ip , channels : make ( map [ uint16 ] chan Packet ) , } go l . run ( ) return l }
NewLayer creates a new instance of the default UDP layer.
NewLayer creates a new instance of the default UDP layer .