add (but don't use) offset field for (protocol) traffic packets

This commit is contained in:
Arceliar 2020-11-07 06:18:09 -06:00
parent f1e9837a98
commit 92dbb48eda
4 changed files with 22 additions and 10 deletions

View file

@ -54,7 +54,8 @@ func (q *packetQueue) drop() bool {
}
func (q *packetQueue) push(packet []byte) {
id := pqStreamID(peer_getPacketCoords(packet)) // just coords for now
_, coords := wire_getTrafficOffsetAndCoords(packet)
id := pqStreamID(coords) // just coords for now
info := pqPacketInfo{packet: packet, time: time.Now()}
for idx := range q.streams {
if q.streams[idx].id == id {