Package: golang-github-gopacket-gopacket / 1.3.0-2

Metadata

Package Version Patches format
golang-github-gopacket-gopacket 1.3.0-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Skip comparing libpcap output in TestBPFInstruction.patch | (download)

pcap/pcap_test.go | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 skip comparing libpcap output in testbpfinstruction

The test just ensures libpcap doesn't change its bpf output
over the time.

(Patch refreshed on 2023-12-20 for github.com/gopacket/gopacket v1.2.0)

Now libpcap 1.10.2 changes:

Previously:

Warning: assuming Ethernet
(000) ldh      [12]
(001) jeq      #0x86dd          jt 2    jf 7
(002) ldb      [20]
(003) jeq      #0x11            jt 10   jf 4
(004) jeq      #0x2c            jt 5    jf 11
(005) ldb      [54]
(006) jeq      #0x11            jt 10   jf 11
(007) jeq      #0x800           jt 8    jf 11
(008) ldb      [23]
(009) jeq      #0x11            jt 10   jf 11
(010) ret      #262144
(011) ret      #0

Now:

$ tcpdump -d udp
Warning: assuming Ethernet
(000) ldh      [12]
(001) jeq      #0x800           jt 2    jf 4
(002) ldb      [23]
(003) jeq      #0x11            jt 10   jf 11
(004) jeq      #0x86dd          jt 5    jf 11
(005) ldb      [20]
(006) jeq      #0x11            jt 10   jf 7
(007) jeq      #0x2c            jt 8    jf 11
(008) ldb      [54]
(009) jeq      #0x11            jt 10   jf 11
(010) ret      #262144
(011) ret      #0

Bug: https://github.com/google/gopacket/issues/1088
Bug-Debian: https://bugs.debian.org/1028841

0002 Skip TestEthernetHandle_Close_With Timeout Cancel.patch | (download)

pcapgo/capture_test.go | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 skip testethernethandle_close_with{timeout,cancel}

These tests in pcapgo/capture_test.go need root access and would give
"netlink.LinkAdd() error = operation not permitted" otherwise.

0003 Fix time type.patch | (download)

pcap/pcap_unix.go | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix 64-bit time type