IPV6(3)

πŸ’– IPV6 πŸ’–

okay bestie, so this is the ipv6 page, from the ipv6 1.1 manual (yes she has a version number, she's iconic like that ✨). Pull up a chair, grab a boba, and let's talk about decoding IPv6 packets with the packet.internet.ipv6 module πŸ¦‹


✨ NAME ✨

packet.internet.ipv6 β€” the IPv6 module, periodt πŸ’…


🌸 DESCRIPTION 🌸

This module decodes the IP version 6 layer. That's it, that's the job, and she does it flawlessly no cap πŸ‘‘

⚠️ heads up bestie: extension headers are not supported. Not a vibe, just the truth. Don't come for her about it πŸ™ˆ

πŸŽ€ CLASSES πŸŽ€

class IPv6(packet.internet.ipv4.IPv4)

the IPv6 object herself, main character energy fr fr πŸ‘‘

πŸ’« Usage:

from packet.internet.ipv6 import IPv6

x = IPv6(pktt)

literally two lines and you're living your best life 🌈

🧚 Object definition:

IPv6(
    version       = int,
    traffic_class = int,
    flow_label    = int,
    total_size    = int,
    protocol      = int,
    hop_limit     = int,
    src           = IPv6Addr(),
    dst           = IPv6Addr(),
    psize         = int,     # payload data size
    data          = string,  # raw data of payload if protocol
                             # is not supported
)

look at all those fields, she's got range πŸ’œ and yes, psize is the payload data size, while data holds the raw data of payload if the protocol is not supported β€” iykyk πŸ“

🫢 Methods defined here:


__init__(self, pktt)

the constructor πŸ’…

she initializes the object's private data. so what's that pktt thing?

  • pktt β€” the packet trace object (packet.pktt.Pktt), so that this layer can access the parent layers. it's giving "who's your daddy" but make it packet parsing 😭

⭐ SEE ALSO ⭐

go read these next, bestie, they're all part of the same friend group 🫢


πŸ’€ BUGS πŸ’€

No known bugs. she's perfect, she's flawless, she ate and left no crumbs πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

Jorge Mora (mora@netapp.com) β€” the icon, the legend, the moment 🌟


and that's the whole page bestie!! this was NFStest 3.2, dated 21 March 2023, and honestly? she slayed πŸ’…βœ¨ bye bye, go decode some packets πŸ¦‹πŸ’–