func (e *rawPacketEntry) Next() *rawPacket {
	return e.next
}
Next returns the entry that follows e in the list.
package raw
type rawPacketElementMapper struct{}
func (rawPacketElementMapper) linkerFor(elem *rawPacket) *rawPacket { return elem }
type rawPacketList struct {
	head *rawPacket
	tail *rawPacket
}
func (l *rawPacketList) Reset() {
	l.head = nil
	l.tail = nil
}
func (l *rawPacketList) Empty() bool {
	return l.head == nil
}
func (l *rawPacketList) Front() *rawPacket {
	return l.head
}
func (l *rawPacketList) Back() *rawPacket {
	return l.tail
}
func (l *rawPacketList) PushFront(e *rawPacket) {
	rawPacketElementMapper{}.linkerFor(e).SetNext(l.head)
	rawPacketElementMapper{}.linkerFor(e).SetPrev(nil)
	if l.head != nil {
		rawPacketElementMapper{}.linkerFor(l.head).SetPrev(e)
	} else {
		l.tail = e
	}
	l.head = e
}
func (l *rawPacketList) PushBack(e *rawPacket) {
	rawPacketElementMapper{}.linkerFor(e).SetNext(nil)
	rawPacketElementMapper{}.linkerFor(e).SetPrev(l.tail)
	if l.tail != nil {
		rawPacketElementMapper{}.linkerFor(l.tail).SetNext(e)
	} else {
		l.head = e
	}
	l.tail = e
}
func (l *rawPacketList) PushBackList(m *rawPacketList) {
	if l.head == nil {
		l.head = m.head
		l.tail = m.tail
	} else if m.head != nil {
		rawPacketElementMapper{}.linkerFor(l.tail).SetNext(m.head)
		rawPacketElementMapper{}.linkerFor(m.head).SetPrev(l.tail)
		l.tail = m.tail
	}
	m.head = nil
	m.tail = nil
}
func (l *rawPacketList) InsertAfter(b, e *rawPacket) {
	a := rawPacketElementMapper{}.linkerFor(b).Next()
	rawPacketElementMapper{}.linkerFor(e).SetNext(a)
	rawPacketElementMapper{}.linkerFor(e).SetPrev(b)
	rawPacketElementMapper{}.linkerFor(b).SetNext(e)
	if a != nil {
		rawPacketElementMapper{}.linkerFor(a).SetPrev(e)
	} else {
		l.tail = e
	}
}
func (l *rawPacketList) InsertBefore(a, e *rawPacket) {
	b := rawPacketElementMapper{}.linkerFor(a).Prev()
	rawPacketElementMapper{}.linkerFor(e).SetNext(a)
	rawPacketElementMapper{}.linkerFor(e).SetPrev(b)
	rawPacketElementMapper{}.linkerFor(a).SetPrev(e)
	if b != nil {
		rawPacketElementMapper{}.linkerFor(b).SetNext(e)
	} else {
		l.head = e
	}
}
func (l *rawPacketList) Remove(e *rawPacket) {
	prev := rawPacketElementMapper{}.linkerFor(e).Prev()
	next := rawPacketElementMapper{}.linkerFor(e).Next()
	if prev != nil {
		rawPacketElementMapper{}.linkerFor(prev).SetNext(next)
	} else {
		l.head = next
	}
	if next != nil {
		rawPacketElementMapper{}.linkerFor(next).SetPrev(prev)
	} else {
		l.tail = prev
	}
}
type rawPacketEntry struct {
	next *rawPacket
	prev *rawPacket
}