FrameAssembly v3.2.210 Guides5 Reference Sheets81 Protocols

FrameAssembly Documentation

Practical guides and reference for creating and editing .pcap and .pcapng files: encrypted SNMPv3 traps, scrubbing private IPs and hostnames with reverse, Suricata and tshark test captures, Wireshark filter mappings, and error codes (E01–E14). Append .md to any doc URL for clean Markdown.

Guides

Practical Walkthroughs

Runnable .frasm captures and terminal commands you can drop straight into your workflow.

Guide 014 min read

Create a .pcap File in 60 Seconds (host + compile)

Name two boxes, draw -> and <- arrows, and build a Wireshark-ready .pcap or .pcapng file with zero Scapy imports and zero sudo.

/docs/getting-startedRead guide
Guide 025 min read

Edit & Anonymize a .pcap File (IPs, VLANs & Payloads)

Reverse captures into plain .frasm text, edit or redact customer IPs and internal hostnames with find-and-replace, and rebuild clean checksums.

/docs/edit-and-anonymize-pcapRead guide
Guide 036 min read

Poke Stateful Firewalls, Suricata, Zeek & OT Conduits

Craft sessions that actually survive stateful TCP tracking, or intentionally inject Xmas scans, fragments, and rogue SQL/Modbus writes to prove your sensors are awake.

/docs/test-firewalls-and-idsRead guide
Guide 046 min read

Encrypted SNMPv3 Traps, Syslog & NetFlow From Your Desk

Test Zabbix, PRTG, LibreNMS, or Splunk alert rules on demand with MIB-free SNMPv1/v2c/v3 authPriv traps, Syslog events, and NetFlow/IPFIX/sFlow records.

/docs/simulate-snmp-and-monitoringRead guide
Guide 056 min read

VLANs, QinQ, MPLS, Tunnel Soup & Dual-Stack IPv6

Stamp 802.1Q / 802.1ad QinQ tags that OS NIC drivers usually eat, stack MPLS/VXLAN/WireGuard/IPsec headers, and reuse one flow(a, b) across IPv4 & IPv6.

/docs/vlans-tunnels-and-ipv6Read guide
Guide 065 min read

CLI Cheat Sheet, Address Formats & Common Gotchas

Every frameassembly v3.2.2 terminal command, accepted IP/MAC/OID format, typo fix, and why .frasm has nothing to do with x86 CPU assemblers.

/docs/cli-and-file-formatRead guide
Guide 078 min read

Physical Hardware Labs: Blasting .pcap Captures onto Copper & Fiber

Wire .frasm -> .pcap captures into SPAN ports, optical TAPs, two-NIC firewall hairpins (tcpprep + tcpreplay), and managed switch trunks without NIC drivers eating your VLAN tags.

/docs/physical-hardware-labsRead guide
Guide 087 min read

Cursed Packets Cookbook: Weird Frames, Middlebox Lies & Reproducers

Four copy-paste packet war stories for catching forged middlebox TCP resets, 802.1ad QinQ native-VLAN leaks, IDS stream-reassembler edge cases, and offline OT coil writes.

/docs/cursed-packets-cookbookRead guide
Guide 096 min read

Zero-Binary .pcap Fixtures in Git & CI/CD (Suricata, Zeek & pytest)

Stop committing mystery test_case_final_v3.pcap blobs to Git. Check in diffable .frasm text and build identical .pcap or .pcapng fixtures on the fly in CI.

/docs/ci-cd-pcap-testingRead guide
Guide 107 min read

Coming from Scapy, tcprewrite & Packetdrill (Patterns & Tradeoffs)

How common Scapy scripts, tcprewrite flags, and Packetdrill tests translate into .frasm — plus an honest guide to when you should still reach for Scapy or tcpreplay.

/docs/migrating-from-scapy-and-tcprewriteRead guide
Reference & Error Catalog

Filter Mappings, Format Spec, Error Catalog & Rust Crate

Wireshark / tcpdump to .frasm filter maps, formal EBNF rules, searchable E01–E14 error messages, and the Rust library API.

Reference R16 min read

Wireshark / tcpdump / Scapy -> .frasm Rosetta Stone

One-page translation map from Wireshark display filters, tcpdump, Scapy, and tcprewrite to exact FrameAssembly v3.2.2 keywords.

/docs/cheat-sheetOpen reference
Reference R27 min read

.frasm Language Spec, Validation Rules & v3.2 Upgrade Map

Formal lexical rules, text/vnd.frameassembly MIME registration, cross-layer semantic checks, and upgrading old v1/v2 .frasm snippets to v3.2.2.

/docs/specificationOpen reference
Reference R37 min read

Under the Hood: 6-Stage Rust Engine, Cargo Crate & EBNF Grammars

How the 6-stage Rust packet engine and .pcap reverse reader work in memory, plus embedding frameassembly in Rust tests and grammar schemas.

/docs/compiler-and-rust-apiOpen reference
Reference R46 min read

Troubleshooting & Error Reference (E01–E14)

Every syntax, block/modifier, and IP/port/protocol validation rule in FrameAssembly v3.2.2 — paste your error message or filter by category to see the exact broken vs. valid .frasm fix.

/docs/diagnosticsOpen reference
Reference R512 min read

Complete .frasm Keyword & Feature Reference (All 653 Tokens)

Every built-in keyword, operator, time unit, cross-layer header modifier, protocol subkeyword, alias, compiler rule, CLI subcommand, and reverse-decompiler capability in FrameAssembly v3.2.2.

/docs/keyword-referenceOpen reference
By Example12 Anthologies · 81 Protocols

FrameAssembly by Example

169 annotated .frasm captures across Layer 2–7 protocols, dual-stack IPv4/IPv6 flow(a, b) templates, and Scapy / Wireshark / reverse migrations.

/docs/examplesBrowse examples
Two-Block File Layout

Two Blocks: host + compile

Select Preview Packets to inspect live wire bytes right here, or jump straight into the 81-protocol reference.

Browse all 81 protocols
snmpv3_trap_starter.frasm8 lines
Open in Playground
// 1. Name the boxes on your network (plain IPv4, IPv6, or MAC)
host router { ip 10.40.1.1 }
host nms_srv { ip 10.40.1.100 }
// 2. Draw -> and <- arrows top-to-bottom (1 line = 1 Ethernet frame)
compile {
router -> nms_srv snmp3 trap user "secops" engineid "80001f888001020304" engineboots 3 enginetime 1200 auth sha256 "AuthSecret2026!" priv aes "PrivSecret2026!" sysuptime 240000 varbind 1.3.6.1.6.3.1.1.4.1.0 oidval 1.3.6.1.6.3.1.1.5.3 varbind 1.3.6.1.2.1.2.2.1.2.1 string "TenGigE0/0/1"
}