dnsjit.core.object.tcp(3)

πŸ“¦
version 1.5.1 Β· 5 versions
, in epel 10, epel 9, fedora 43, fedora 44, ubuntu resolute, ubuntu stonking

✨ dnsjit.core.object.tcp ✨

ok so this is the manual for dnsjit.core.object.tcp(3) β€” it lives in the Library Functions Manual section and it's literally just the TCP segment header object, bestie πŸ’–


πŸ¦‹ NAME πŸ¦‹

dnsjit.core.object.tcp β€” A TCP segment header


πŸ’… DESCRIPTION πŸ’…

It's a TCP segment header, periodt. That's the whole vibe of this object.

But here's the tea, and it's important: the data itself is NOT in here. The actual payload lives in the dnsjit.core.object.payload object, which is the next object in the chain</> after you parse with, for example, dnsjit.filter.layer. So don't come looking for your bytes in the header, she's just the header, she's doing her job πŸŽ€

πŸ“ Attributes πŸ“

  • sport β€” Source port.
  • dport β€” Destination port.
  • seq β€” Sequence number.
  • ack β€” Acknowledgement number.
  • off β€” Data offset.
  • x2 β€” Unused. yeah she's just sitting there, unused, iconic honestly πŸ’€
  • flags β€” TCP flags.
  • win β€” Window.
  • sum β€” Checksum.
  • urp β€” Urgent pointer.
  • opts β€” Array of bytes with the TCP options found.
  • opts_len β€” Length of the TCP options.

🧚 Functions 🧚

  • Tcp:type() β€” Return the textual type of the object. 🫢
  • Tcp:prev() β€” Return the previous object. going back in the chain, we love a throwback ✨
  • Tcp:cast() β€” Cast the object to the underlining object module and return it.
  • Tcp:uncast() β€” Cast the object to the generic object module and return it.
  • Tcp:copy() β€” Make a copy of the object and return it. twin energy πŸ‘―
  • Tcp:free() β€” Free the object, should only be used on copies or otherwise allocated.
⚠️ okay real talk on that last one: Tcp:free() is only for copies or objects that were otherwise allocated. do not go freeing things that don't belong to you, that's not the move πŸ’€

🌈 SEE ALSO 🌈


πŸ‘‘ AUTHORS and CONTRIBUTORS πŸ‘‘

Give it up for the legends who made this:

  • Jerry LundstrΓΆm (DNS-OARC)
  • TomΓ‘Ε‘ KΕ™Γ­ΕΎek (CZ.NIC)
  • Petr Ε paček (ISC)

Maintained by DNS-OARC 🫢

https://www.dns-oarc.net/

πŸ’€ BUGS πŸ’€

Got issues? Feature requests? Don't suffer in silence bestie, use:

https://codeberg.org/DNS-OARC/dnsjit/issues

For questions and help please use:

admin@dns-oarc.net

and that's the whole page, no cap ✨ this was brought to you by dnsjit version 1.5.1, manual page dnsjit.core.object.tcp(3) β€” mwah, slay, bye πŸ’…πŸŽ€πŸŒΈ