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

DNS object, parsing, respdiff #77

Merged
merged 1 commit into from
Jun 22, 2018
Merged

DNS object, parsing, respdiff #77

merged 1 commit into from
Jun 22, 2018

Conversation

jelu
Copy link
Member

@jelu jelu commented Jun 22, 2018

  • core.object.dns:
    • Issue core.object.dns #39: Remove private struct and pull in omg-dns code
    • Issue core.object.dns #39: Add constants and strings for class, type, opcode, rcode etc
    • Add new objects core.object.dns.label, core.object.dns.q and core.object.dns.rr
    • Make it possible to reuse a core.object.dns for parsing another payload
    • Rework the way parsing more then just the header is done:
      • Remove functions rr_reset(), rr_ok(), rr_label(), rr_type(), rr_class() and rr_ttl()
      • Remove attributes questions, answers, authorities and additionals
      • Add function parse_q() and parse_rr()
      • Payload object is now optional for new()
      • Change parse(), see documentation
    • Remove old (non-working) functions src() and dst()
    • Remove old (unused) attributes src_id, qr_id, dst_id, sport and dport
    • print() now displays textual representation of types and codes
  • core.object: Remove prefix for constants
  • examples/*:
    • Add respdiff.lua, based on playqr.lua but only uses output.respdiff
    • Remove playqr.lua
    • Update all examples with changes made to core.object and core.object.dns
  • README.md/Makefiles: Remove omg-dns dependency
  • filter.layer: Update parsing to use memcpy() and bswap_nn() for possible assembler optimization
  • input.fpcap: Update parsing to use bswap_nn() for possible assembler optimization
  • input.mmpcap: Update parsing to use bswap_nn() for possible assembler optimization

- `core.object.dns`:
  - Issue DNS-OARC#39: Remove private struct and pull in `omg-dns` code
  - Issue DNS-OARC#39: Add constants and strings for class, type, opcode, rcode etc
  - Add new objects `core.object.dns.label`, `core.object.dns.q` and `core.object.dns.rr`
  - Make it possible to reuse a `core.object.dns` for parsing another payload
  - Rework the way parsing more then just the header is done:
    - Remove functions `rr_reset()`, `rr_ok()`, `rr_label()`, `rr_type()`, `rr_class()` and `rr_ttl()`
    - Remove attributes `questions`, `answers`, `authorities` and `additionals`
    - Add function `parse_q()` and `parse_rr()`
    - Payload object is now optional for `new()`
    - Change `parse()`, see documentation
  - Remove old (non-working) functions `src()` and `dst()`
  - Remove old (unused) attributes `src_id`, `qr_id`, `dst_id`, `sport` and `dport`
  - `print()` now displays textual representation of types and codes
- `core.object`: Remove prefix for constants
- `examples/*`:
  - Add `respdiff.lua`, based on `playqr.lua` but only uses `output.respdiff`
  - Remove `playqr.lua`
  - Update all examples with changes made to `core.object` and `core.object.dns`
- `README.md`/Makefiles: Remove `omg-dns` dependency
- `filter.layer`: Update parsing to use `memcpy()` and `bswap_nn()` for possible assembler optimization
- `input.fpcap`: Update parsing to use `bswap_nn()` for possible assembler optimization
- `input.mmpcap`: Update parsing to use `bswap_nn()` for possible assembler optimization
@jelu jelu merged commit b600bc9 into DNS-OARC:develop Jun 22, 2018
@jelu jelu deleted the dns branch June 22, 2018 12:27
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