1
1
mirror of https://github.com/wader/fq.git synced 2024-12-23 05:13:30 +03:00
Commit Graph

1677 Commits

Author SHA1 Message Date
Mattias Wadman
9f7d50bf0e
Merge pull request #594 from wader/xml-toml-fail-fast
toml,xml: Fail fast on invalid content
2023-02-22 16:33:13 +01:00
Mattias Wadman
56edb59e83 toml,xml: Fail fast on invalid content
encoding/xml and github.com/BurntSushi/toml both reads a lot before detecting
that it can't decode. Now we instead read one UTF-8 and make sure it's valid
xml or toml.

Should speed up probing

Related to #586 bigzero-zip.zip
2023-02-22 16:23:21 +01:00
Mattias Wadman
aaf60ec250
Merge pull request #592 from wader/bump-make-golangci-lint-1.51.2
Update make-golangci-lint to 1.51.2 from 1.51.1
2023-02-20 17:14:00 +01:00
Mattias Wadman
9078d4a618
Merge pull request #593 from wader/bump-github-golangci-lint-1.51.2
Update github-golangci-lint to 1.51.2 from 1.51.1
2023-02-20 17:13:53 +01:00
bump
75bfdda362 Update github-golangci-lint to 1.51.2 from 1.51.1
Release notes https://github.com/golangci/golangci-lint/releases/tag/v1.51.2
2023-02-20 16:03:57 +00:00
bump
70e08faa18 Update make-golangci-lint to 1.51.2 from 1.51.1
Release notes https://github.com/golangci/golangci-lint/releases/tag/v1.51.2
2023-02-20 16:03:55 +00:00
Mattias Wadman
7b6847c24e
Merge pull request #591 from wader/ipv4frag-tcp-test
pcap: Add ipv4 fragments tcp test
2023-02-20 11:59:12 +01:00
Mattias Wadman
d4ea6632fa pcap: Add ipv4 fragments tcp test 2023-02-20 11:45:12 +01:00
Mattias Wadman
ab80713ea4
Merge pull request #590 from wader/pcap-ipv45-link-frame
ipv4_packet,ipv6_packet,sll_packet,sll2_packet: Support ipv4/ipv6 lin…
2023-02-20 09:22:42 +01:00
Mattias Wadman
c8666eeb04 ipv4_packet,ipv6_packet,sll_packet,sll2_packet: Support ipv4/ipv6 link frames and pass correct in arg
ipv4/ipv6 in sll* accidentally worked as it passed wrong arg with ether type
2023-02-20 01:34:38 +01:00
Mattias Wadman
acc92e6996
Merge pull request #589 from wader/decode-multi-arg-refactor
decode: Support multiple format args and some rename and refactor
2023-02-18 21:56:03 +01:00
Mattias Wadman
8e0dde03d0 decode: Support multiple format args and some rename and refactor
This will allow passing both cli options and format options to sub decoder.
Ex: pass keylog option to a tls decoder when decoding a pcap.
Ex: pass decode options to a format inside a http body inside a pcap.

Add ArgAs method to lookup argument based on type. This also makes the format
decode function have same signature as sub decoders in the decode API.

This change decode.Format a bit:
DecodeFn is now just func(d *D) any
DecodeInArg renamed to DefaultInArg
2023-02-18 21:38:51 +01:00
Mattias Wadman
570a213178
Merge pull request #584 from wader/bump-docker-golang-1.20.1
Update docker-golang to 1.20.1 from 1.20.0
2023-02-17 12:40:41 +01:00
Mattias Wadman
c2d81fbd4f
Merge pull request #588 from wader/bump-github-go-version-1.20.1
Update github-go-version to 1.20.1 from 1.20.0, 1.20.0, 1.20.0
2023-02-17 12:40:23 +01:00
bump
02e573a902 Update github-go-version to 1.20.1 from 1.20.0, 1.20.0, 1.20.0 2023-02-17 10:51:30 +00:00
Mattias Wadman
feefd7eec3
Merge pull request #585 from wader/bump-gomod-golang-x-net-0.7.0
Update gomod-golang-x-net to 0.7.0 from 0.6.0
2023-02-15 11:42:52 +01:00
bump
dd8ab79927 Update gomod-golang-x-net to 0.7.0 from 0.6.0
Tags https://github.com/golang/net/tags
2023-02-15 10:35:04 +00:00
bump
0581ecea3e Update docker-golang to 1.20.1 from 1.20.0 2023-02-15 10:34:57 +00:00
Mattias Wadman
55375c0331
Merge pull request #583 from wader/help-cleanup
doc,fq: Improve cli help and some cleanup
2023-02-15 11:13:12 +01:00
Mattias Wadman
a1bb630a2a doc,fq: Improve cli help and some cleanup 2023-02-15 11:04:39 +01:00
Mattias Wadman
9bad37814e
Merge pull request #581 from wader/matroska-unknown-size-test
matroska: Add unknown size test and add description to ebml header
2023-02-10 10:39:22 +01:00
Mattias Wadman
9aaf2ddf27 matroska: Add unknown size test and add description to ebml header 2023-02-10 10:29:25 +01:00
Mattias Wadman
4579c7ee23
Merge pull request #580 from wader/matoska-update-spec
matroska: Update spec and make refs in descriptions look nicer
2023-02-09 23:46:22 +01:00
Mattias Wadman
c890a2899f matroska: Update spec and make refs in descriptions look nicer 2023-02-09 23:18:17 +01:00
Mattias Wadman
072a63ae6b
Merge pull request #576 from wader/matroska-master-unknown-size-end
matroska: Assume master with unknown size has ended if a valid parent is found
2023-02-09 20:26:25 +01:00
Mattias Wadman
a8d0bf4d3e matroska: Assume master with unknown size has ended if a valid parent is found
Major refactor of ebml code generator, now decoupled from fq code
Cleanup element descriptions a bit, a bit shorter and less clutter
Cleanup old comments
2023-02-09 20:10:47 +01:00
Mattias Wadman
7a718abaac
Merge pull request #579 from wader/bump-gomod-golang/text-0.7.0
Update gomod-golang/text to 0.7.0 from 0.6.0
2023-02-09 18:45:22 +01:00
Mattias Wadman
d946f10638
Merge pull request #578 from wader/bump-gomod-golang-x-net-0.6.0
Update gomod-golang-x-net to 0.6.0 from 0.5.0
2023-02-09 18:45:07 +01:00
Mattias Wadman
db90e16b99
Merge pull request #577 from wader/bump-gomod-golang-x-crypto-0.6.0
Update gomod-golang-x-crypto to 0.6.0 from 0.5.0
2023-02-09 18:44:48 +01:00
bump
97643b9873 Update gomod-golang/text to 0.7.0 from 0.6.0
Source diff 0.6.0..0.7.0 https://github.com/golang/text/compare/v0.6.0..v0.7.0
2023-02-09 16:04:05 +00:00
bump
2430fba7e5 Update gomod-golang-x-net to 0.6.0 from 0.5.0
Tags https://github.com/golang/net/tags
2023-02-09 16:04:02 +00:00
bump
b1d9306b18 Update gomod-golang-x-crypto to 0.6.0 from 0.5.0
Tags https://github.com/golang/crypto/tags
2023-02-09 16:03:59 +00:00
Mattias Wadman
0609369b56
Merge pull request #575 from wader/matoska-unknown-size-non-master
matroska: Handle unknown size for non-master types a bit better
2023-02-08 12:26:17 +01:00
Mattias Wadman
0d14d7b40f matroska: Handle unknown size for non-master types a bit better
For non-master types assume size to be rest of file
Still does not follow the ebml spec
2023-02-08 12:14:40 +01:00
Mattias Wadman
52b76b05c1
Merge pull request #574 from wader/matroska-decode-samples-option
matroska: Add decode_samples option
2023-02-08 11:43:10 +01:00
Mattias Wadman
b60aceca9e matroska: Add decode_samples option
Also change the option help a bit, maybe medid and support is confusing, we
might evetually decode non-audio/video things.
2023-02-08 11:31:41 +01:00
Mattias Wadman
5b3ed334e6
Merge pull request #573 from wader/jqvalue-cancel-error
Fix cancel panic when interrupting big json output
2023-02-07 17:06:26 +01:00
Mattias Wadman
dc79a73b72 interp,json: Move error handling to colorjson
Cancel error from ValueFn etc will be return by Marshal instead
2023-02-07 16:57:54 +01:00
Mattias Wadman
50d26ec759 colorjson: Handle encoding error value
Can happen if ValueFn is used and it returns an error, reader is canceled etc
2023-02-07 16:45:29 +01:00
Mattias Wadman
5c8e115106 colorjson: Refactor to option struct 2023-02-07 16:18:32 +01:00
Mattias Wadman
3ce9e9fc71
Merge pull request #572 from wader/fosdem2023-link
doc: Add FOSDEM 2023 talk
2023-02-06 17:03:24 +01:00
Mattias Wadman
156aeecacd doc: Add FOSDEM 2023 talk 2023-02-06 16:50:49 +01:00
Mattias Wadman
b537bfe34f
Merge pull request #570 from wader/bump-make-golangci-lint-1.51.1
Update make-golangci-lint to 1.51.1 from 1.51.0
2023-02-05 19:14:57 +01:00
Mattias Wadman
61fff1b8fc
Merge pull request #571 from wader/bump-github-golangci-lint-1.51.1
Update github-golangci-lint to 1.51.1 from 1.51.0
2023-02-05 19:14:38 +01:00
bump
ce2637260c Update github-golangci-lint to 1.51.1 from 1.51.0
Release notes https://github.com/golangci/golangci-lint/releases/tag/v1.51.1
2023-02-05 16:03:46 +00:00
bump
36df57ebec Update make-golangci-lint to 1.51.1 from 1.51.0
Release notes https://github.com/golangci/golangci-lint/releases/tag/v1.51.1
2023-02-05 16:03:43 +00:00
Mattias Wadman
bafc8e3d93
Merge pull request #562 from wader/release-0.3.0
Release 0.3.0
2023-02-02 11:32:47 +01:00
Mattias Wadman
00c0cde6ab fq: Release 0.3.0 2023-02-02 11:23:02 +01:00
Mattias Wadman
23e244e6e5
Merge pull request #568 from wader/bump-github-go-version-1.20.0
Update github-go-version to 1.20.0 from 1.19.5, 1.19.5, 1.19.5
2023-02-02 11:17:42 +01:00
Mattias Wadman
57144b2f95 github-action: Use quotes becase yaml (1.20 -> 1.2) 2023-02-02 11:05:53 +01:00