---
name: "packet.link.sllv2"
section: "3"
platform: "linux"
package: "nfstest"
version: "3.2-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/packet.link.sllv2"
---

# packet.link.sllv2(3)

ERF module

## NAME

packet.link.sllv2 - ERF module

## DESCRIPTION

Decode Linux "cooked" v2 capture encapsulation layer

## CLASSES

### class SLLv2(baseobj.BaseObj)

```
Extensible record format object
Usage:
    from packet.link.sllv2 import SLLv2
    x = SLLv2(pktt)
Object definition:
SLLv2(
    etype  = int,    # Protocol type
    index  = int,    # Interface index
    dtype  = int,    # Device type
    ptype  = int,    # Packet type
    alen   = int,    # Address length
    saddr  = int,    # Source Address
    psize  = int,    # Payload data size
)
```

**Methods defined here:** ---------------------

**\_\_init\_\_(self, pktt)** Constructor

Initialize object's private data.

- **pktt:**

  Packet trace object (packet.pktt.Pktt) so this layer has access to the parent layers.

**\_\_str\_\_(self)** String representation of object

The representation depends on the verbose level set by debug\_repr(). If set to 0 the generic object representation is returned. If set to 1 the representation of the object is condensed:\
     "SLLv2  etype: 0x86dd, index: 3, dtype: 65534, ptype: 4, alen: 0, saddr: b'', psize: 116"

## SEE ALSO

**[baseobj(3)](/baseobj/3.md),** **[packet.internet.ipv4(3)](/packet.internet.ipv4/3.md),** **[packet.internet.ipv6(3)](/packet.internet.ipv6/3.md),** **[packet.link.macaddr(3)](/packet.link.macaddr/3.md)**

## BUGS

No known bugs.

## AUTHOR

Jorge Mora (mora@netapp.com)
