dnsjit.core.object.ip6(3)

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

✨ NAME ✨

dnsjit.core.object.ip6 β€” it's literally an IPv6 packet, bestie πŸ’–

This one lives in the dnsjit.core.object.ip6 corner of the library, section 3 of the manual (Library Functions Manual), so you already know it's giving "we handle packets around here" energy πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

It's an IPv6 packet!! πŸŽ€ And the tea is that you'll usually find it hanging out in the object chain after you've parsed stuff with, like, Layer filter. So it doesn't just show up out of nowhere β€” it's the after-party of parsing, iykyk.

πŸ“ Attributes πŸ“

  • flow β€” 4 bits of version, 8 bits of TC, and 20 bits of flow-ID. Three little fields sharing one cute little slot, no cap.
  • plen β€” the payload length, exactly as it shows up in the IPv6 header.
  • nxt β€” next header.
  • hlim β€” hop limit.
  • src β€” source address.
  • dst β€” destination address.
  • is_frag β€” 1 bit, and it's set if the packet is a fragment.
  • have_rtdst β€” 1 bit, and it's set if rtdst is set.
  • frag_offlg β€” offset, reserved, and flag, all taken from the fragment header.
  • frag_ident β€” the identification, also taken from the fragment header.
  • rtdst β€” the destination address found in the routing extension header.
  • hlen β€” the length of the extension headers, in bytes.
  • payload β€” a pointer to the payload. Just a pointer. Pointing. 🫢
  • len β€” the length of the payload.
  • pad_len β€” the length of padding found, if any.

πŸ’œ Functions πŸ’œ

  • Ip6:type() β€” returns the textual type of the object.
  • Ip6:prev() β€” returns the previous object.
  • Ip6:cast() β€” casts the object to the underlining object module and returns it.
  • Ip6:uncast() β€” casts the object to the generic object module and returns it.
  • Ip6:copy() β€” makes a copy of the object and returns it. A whole new you ✨
  • Ip6:free() β€” frees the object. > ⚠️ Okay so important: this should only be used on copies or otherwise allocated stuff. Don't be out here freeing things you didn't make, bestie, that's a one-way ticket to chaos πŸ’€
  • Ip6:source(pretty) β€” returns the IPv6 source as a string. If pretty is true, then you get an easier to read IPv6 address. Aesthetic source, slay.
  • Ip6:destination(pretty) β€” returns the IPv6 destination as a string. If pretty is true, then it's an easier to read IPv6 address. Same energy, different address πŸŽ€

🌈 SEE ALSO 🌈


πŸ‘‘ AUTHORS and CONTRIBUTORS πŸ‘‘

The icons who made this happen:

  • 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? Got feature requests? Both go here, fr fr:

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

Questions and help? Different vibe, different inbox:

admin@dns-oarc.net

And that's the whole page, bestie β€” this was dnsjit.core.object.ip6(3) from dnsjit version 1.5.1, signed off with love πŸ’–πŸ¦‹πŸŒΈ periodt.