dnsjit.core.object.gre(3)

๐Ÿ“ฆ
version 1.5.1 ยท 5 versions
, in epel 10, epel 9, fedora 43, fedora 44, ubuntu resolute, ubuntu stonking

๐Ÿ’– dnsjit.core.object.gre(3) โ€” bestie's guide to the GRE object ๐Ÿฆ‹

okay so this is a page from the Library Functions Manual for dnsjit.core.object.gre, and it's literally just the GRE chunk of a packet, explained with love. let's get into it โœจ


๐ŸŒธ NAME ๐ŸŒธ

dnsjit.core.object.gre โ€” the Generic Routing Encapsulation (GRE) part of a packet, periodt ๐Ÿ’…


โœจ DESCRIPTION โœจ

so like, picture a packet that's been through the whole object-chain pipeline. this module is the GRE part of that packet โ€” and you'll usually find it chillin' in the object chain after parsing with, for example, a Layer filter. iykyk ๐Ÿซถ

and fr fr, go read RFC 1701 if you wanna know the lore. it's giving "required reading" ๐Ÿ‘‘


๐ŸŽ€ Attributes ๐ŸŽ€

  • gre_flags โ€” the GRE flags, obviously. the little vibe indicators of the header ๐Ÿ’ซ
  • ether_type โ€” the protocol type of the payload packet. like, what's inside this thing? ๐Ÿค”
  • checksum โ€” the checksum covering the GRE header and the payload packet. math girlies stay winning ๐Ÿงฎ
  • key โ€” the Key field, a four octet number that was inserted by the encapsulator. yes, inserted. by the encapsulator. iconic behavior ๐Ÿ”‘
  • sequence โ€” the Sequence Number field, an unsigned 32 bit integer that's inserted by the encapsulator. she's numbered, she's unsigned, she's 32 bits ๐Ÿ’…

๐Ÿงš Functions ๐Ÿงš

  • Gre:type() โ€” return the textual type of the object. just tells you what it is ๐Ÿท๏ธ
  • Gre:prev() โ€” return the previous object. go back one step, bestie โช
  • Gre:cast() โ€” cast the object to the underlining object module and return it. โœจ
  • Gre:uncast() โ€” cast the object to the generic object module and return it. reverse uno ๐Ÿƒ
  • Gre:copy() โ€” make a copy of the object and return it. twin moment ๐Ÿ‘ฏ
  • Gre:free() โ€” free the object. โš ๏ธ careful though: this should only be used on copies or on stuff that was otherwise allocated. do NOT go freeing things that aren't yours, that's a one-way ticket to chaos ๐Ÿ’€

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

go read those next, they're part of the same universe ๐ŸŒˆ


๐Ÿ‘‘ AUTHORS and CONTRIBUTORS ๐Ÿ‘‘

the legends 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? don't suffer in silence, bestie:

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

questions and help? hit up:

admin@dns-oarc.net

and that's the whole page! this was dnsjit version 1.5.1, page dnsjit.core.object.gre(3), and yes she ate and left no crumbs ๐Ÿ’…โœจ bye bestie, go parse some packets ๐Ÿฆ‹