Skip to main content
The skb (socket buffer) section contains metadata about the Linux kernel struct sk_buff data structure, including checksums, GSO information, and reference counts.

Fields

vlan_accel
SkbVlanAccelEvent
VLAN hardware acceleration information when VLAN data is in metadata rather than the packet.
meta
SkbMetaEvent
Socket buffer metadata including lengths, checksums, hash, and priority.
data_ref
SkbDataRefEvent
Data and reference count information for the skb.
gso
SkbGsoEvent
Generic Segmentation Offload (GSO) information.

SkbVlanAccelEvent

Display Format

vlan_accel (ethertype IPv4 (0x0800) vlan 100 p 5 DEI)

SkbMetaEvent

Display Format

skb [csum none hash 0x1234 len 98 priority 0]
skb [csum unnecessary (level 0) len 1500 data_len 1460 priority 0]
skb [csum partial (start 14 off 16) hash 0xabcd len 1500 priority 0]

SkbDataRefEvent

Display Format

skb [users 1 dataref 1]
skb [cloned fclone 2 users 2 dataref 1]
skb [nohdr users 1 dataref 2]

SkbGsoEvent

Display Format

gso [type 0x1 size 1448]
gso [type 0x1 flags 0x2 frags 3 segs 10 size 1448]

Example JSON

Complete SKB with All Fields

{
  "skb": {
    "vlan_accel": {
      "proto": 33024,
      "pcp": 5,
      "dei": true,
      "vid": 100
    },
    "meta": {
      "len": 1500,
      "data_len": 0,
      "hash": 305419896,
      "ip_summed": 1,
      "csum": 0,
      "csum_level": 0,
      "priority": 0
    },
    "data_ref": {
      "nohdr": false,
      "cloned": false,
      "fclone": 0,
      "users": 1,
      "dataref": 1
    },
    "gso": {
      "type": 1,
      "flags": 0,
      "size": 1448,
      "segs": 0,
      "frags": 0
    }
  }
}

Minimal SKB (Metadata Only)

{
  "skb": {
    "meta": {
      "len": 98,
      "data_len": 0,
      "hash": 0,
      "ip_summed": 0,
      "csum": 0,
      "csum_level": 0,
      "priority": 0
    },
    "data_ref": {
      "nohdr": false,
      "cloned": false,
      "fclone": 0,
      "users": 1,
      "dataref": 1
    }
  }
}

Cloned SKB

{
  "skb": {
    "meta": {
      "len": 1500,
      "data_len": 0,
      "hash": 2863311530,
      "ip_summed": 1,
      "csum": 0,
      "csum_level": 0,
      "priority": 0
    },
    "data_ref": {
      "nohdr": false,
      "cloned": true,
      "fclone": 2,
      "users": 2,
      "dataref": 1
    }
  }
}

When This Section Appears

The skb section is populated when:
  • The skb collector is enabled (-c skb)
  • The probe has access to an struct sk_buff * parameter
  • The skb is valid and readable
Not all fields appear in every event. Fields with default or invalid values are automatically hidden from the output.

VLAN Hardware Acceleration

When VLAN tags are handled by hardware (“VLAN acceleration”), the VLAN information is stored in skb metadata instead of being part of the packet data. The vlan_accel field captures this metadata. When VLAN acceleration is not used, VLAN information appears in the packet section instead.

Build docs developers (and LLMs) love