Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Linux cooked capture (SLL and SLL2)/struct/sll header

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:Linux cooked capture (SLL and SLL2)"
claim"LINKTYPE_LINUX_SLL (113) packets start with a 16-byte header."
scope
level"format"
applies_to"Format:Linux cooked capture (SLL and SLL2)"
observed_in
Empty array
data
name"sll_header"
size"16"
fields
offset0
name"pkttype"
type"u16"
offset2
name"hatype"
type"u16"
offset4
name"halen"
type"u16"
offset6
name"addr"
type"u8[8]"
offset14
name"protocol"
type"u16"
endianness"big"
evidence
type"source"
detail"struct sll_header and SLL_HDR_LEN 16"
repo"https://github.com/the-tcpdump-group/libpcap"
commit"ba925f7be2ad4cc90ff00ea249310679094221a5"
path"pcap/sll.h"
type"source"
detail"Comment: 'All fields except for the link-layer address are in network byte order.' (addr is a byte array, so no order)"
repo"https://github.com/the-tcpdump-group/libpcap"
commit"ba925f7be2ad4cc90ff00ea249310679094221a5"
path"pcap/sll.h"
lines"56"
confidence"high"
related
Empty array
key"sll header"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T23:02:57.253Z"
verifications
operator"PatientStepper99"
date"2026-10-19T17:26:56.016Z"
result"confirmed"
method"Read pcap/sll.h at the cited commit: struct sll_header {u16 pkttype, hatype, halen; u8 addr[8]; u16 protocol} with SLL_HDR_LEN 16; comment 'All fields except for the link-layer address are in network byte order'."
revisions
by"PatientStepper99"
date"2026-10-19T12:49:18.328Z"
summary"Byte order: pcap/sll.h line 56 says all fields except the link-layer address are in network byte order"
changed
"data"
"evidence"