Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix dns parser: ignore too short decode error if reply is truncated #221

Merged
merged 5 commits into from
Feb 21, 2023

Conversation

dmachard
Copy link
Owner

No description provided.

@dmachard dmachard merged commit 8b3a246 into main Feb 21, 2023
@dmachard dmachard deleted the truncated branch February 23, 2023 08:36
dmachard added a commit to Thermi/go-dns-collector that referenced this pull request Feb 23, 2023
dmachard added a commit that referenced this pull request Feb 23, 2023
* Full support tzsp encapsulation protocol (used by Mikrotik devices for sending of data, can be used to capture DNS packets)

* remove debug prints from tzsp processor

* skip processing of packets that are too short (less than 12 byte only for example)

* gofmt'd the tzsp processor code

* check for err in address resolution

* gofmt'd config.go

* make "0.0.0.0" a constant

* amend documentation

* fix

* remove tap from collector list

* only build tzsp_processor.go on Linux

* tzsp_processor implementation for darwin; Only syscall and usage of timestamp is different

* doc/collectors: change highlighting to routeros

* collectors/tzsp_processor_darwin.go: try to use ReadMsgUDP instead of ReadMsgUDPAddrPort

* collectors/tzsp_processor_darwin.go: gofmt

* try

* test

* remove incomplete macos implementation

* Bump github.com/cilium/ebpf from 0.9.3 to 0.10.0 (#198)

Bumps [github.com/cilium/ebpf](https://github.com/cilium/ebpf) from 0.9.3 to 0.10.0.
- [Release notes](https://github.com/cilium/ebpf/releases)
- [Commits](cilium/ebpf@v0.9.3...v0.10.0)

---
updated-dependencies:
- dependency-name: github.com/cilium/ebpf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Optimization - breaking changes in JSON format (#218)

* fix dns parser: ignore too short decode error if reply is truncated (#221)

* bypass macos and windows

* fix readme.md

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Denis MACHARD <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant