SLLV1(3)

πŸ’– SLLV1 πŸ’–

okay bestie, so this is SLLV1(3) from the sllv1 1.0 era β€” yes she's giving manual page, but honestly? she's iconic and you're gonna love her. sit down, grab a strawberry πŸ“, and let's get into it.


✨ NAME ✨

packet.link.sllv1 β€” the ERF module, periodt.


🌸 DESCRIPTION 🌸

She decodes the Linux "cooked" v1 capture encapsulation layer. like, that's the whole job. that's the assignment. and she ate. πŸ’…


πŸŽ€ CLASSES πŸŽ€

class SLLv1(baseobj.BaseObj)

it's an Extensible record format object. no cap.

Usage:

from packet.link.sllv1 import SLLv1

x = SLLv1(pktt)

Object definition:

SLLv1(
    ptype  = int,    # Packet type
    dtype  = int,    # Device type
    alen   = int,    # Address length
    saddr  = int,    # Source Address
    etype  = int,    # Protocol type
    psize  = int,    # Payload data size
)

πŸ¦‹ Methods defined here:

__init__(self, pktt)

Constructor. literally just initializing the object's private data, nbd.

  • pktt: Packet trace object (packet.pktt.Pktt) so this layer has access to the parent layers. she needs to know her roots, yk? main character needs her lore.

__str__(self)

String representation of object. and the way she looks depends on the verbose level set by debug_repr():

  • if it's set to 0, you get the generic object representation back. plain. simple. lowkey fine.
  • if it's set to 1, the representation of the object is condensed:
"SLLv1  ptype: 4, dtype: 65534, alen: 0, saddr: b'', etype: 0x86dd, psize: 116"

yeah she's compact and she's still serving πŸ’–


🌈 SEE ALSO 🌈

go read those too bestie, iykyk 🫢


πŸ’€ BUGS πŸ’€

No known bugs. she's flawless, we said what we said, not a single note. πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Jorge Mora (mora@netapp.com) β€” the icon who wrote her fr fr.


and that's the whole page bestie, every single detail intact, no skips, no cuts. mwah. πŸ˜­πŸ’–

okay so that's the vibe β€” this is from NFStest 3.2, dated 21 March 2023, and honestly she's still slaying. bye pookie! πŸŒΈβœ¨πŸ¦‹πŸŽ€