1
1
mirror of https://github.com/wader/fq.git synced 2024-11-28 03:02:55 +03:00
fq/format/inet
Mattias Wadman 7c5215347d bitio,decode: Refactor bitio usage and make buffer slicing more correct
Remove bitio.Buffer layer. bitio.Buffer was a kitchen sink layer with helpers
now it's just a buffer and most functions have been moved to decode instead.

bitio package now only have primitive types and functions simialar to standard
library io and bytes packages.

Make nearly eveything internally use bitio.Bit* interfaces so that slicing work
correctly this will also make it possible to start experimenting with more
complicated silcing helpers, ex things like:
breplace(.header.bitrate; 123) to get a new buffer with bitrate changed.
2022-02-04 21:41:53 +01:00
..
flowsdecoder tcp,flow: By default allow missing syn/ack for now 2022-01-07 12:02:38 +01:00
testdata interp: Cleanup display aliases, now: d, da, dd, dv, ddv 2022-01-28 18:25:38 +01:00
bsd_loopback_frame.go pcap,pcapng,bsd_loopback_frame: Add decoder, refactor link frame into a group 2022-01-03 21:06:27 +01:00
ether8023_frame.go pcap,pcapng,bsd_loopback_frame: Add decoder, refactor link frame into a group 2022-01-03 21:06:27 +01:00
icmp.go decode: Refactor scalar usage 2021-12-02 17:39:26 +01:00
ipv4_packet.go bitio,decode: Refactor bitio usage and make buffer slicing more correct 2022-02-04 21:41:53 +01:00
sll2_packet.go pcap,pcapng,bsd_loopback_frame: Add decoder, refactor link frame into a group 2022-01-03 21:06:27 +01:00
sll_packet.go pcap,pcapng,bsd_loopback_frame: Add decoder, refactor link frame into a group 2022-01-03 21:06:27 +01:00
tcp_segment.go decode: Refactor scalar usage 2021-12-02 17:39:26 +01:00
udp_datagram.go pcap,pcapng,bsd_loopback_frame: Add decoder, refactor link frame into a group 2022-01-03 21:06:27 +01:00