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.
Practical Walkthroughs
Runnable .frasm captures and terminal commands you can drop straight into your workflow.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
.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.
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.
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.
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.
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.
Two Blocks: host + compile
Select Preview Packets to inspect live wire bytes right here, or jump straight into the 81-protocol reference.
// 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"
}