streaming

Media streaming and broadcast systems in Go
Log | Files | Refs | README | LICENSE

commit 48bf5f705fadc940d6218ec5051f86d002541015
parent b4fa198b81781fa6ca022e1777da1278858f0487
Author: Oliver Lowe <o@olowe.co>
Date:   Fri,  9 Aug 2024 20:15:11 +1000

pcap: ignore unused global header fields

From pcap-savefile(5) for both the fields:

> SHOULD be filled with 0 by pcap file writers, and MUST be ignored by
> pcap file readers.

Diffstat:
Mpcap/pcap.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pcap/pcap.go b/pcap/pcap.go @@ -20,8 +20,8 @@ const ( type GlobalHeader struct { VersionMajor uint16 VersionMinor uint16 - ThisZone int32 - SigFigs uint32 + _ int32 // leftover from old pcap versions + _ int32 // leftover from old pcap versions SnapLen uint32 Network uint32 }