From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Library:ENet" |
|---|
| claim | "Every ENet command starts with 4 bytes: command (low 4 bits number, bit 7 = acknowledge requested, bit 6 = unsequenced), channelID (0xFF for connection-level commands), and a big-endian 16-bit reliableSequenceNumber." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:ENet" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "ENetProtocolCommandHeader" |
|---|
| size | 4 |
|---|
| fields | | name | "command" |
|---|
| type | "uint8" |
|---|
| offset | 0 |
|---|
|
| name | "channelID" |
|---|
| type | "uint8" |
|---|
| offset | 1 |
|---|
|
| name | "reliableSequenceNumber" |
|---|
| type | "uint16" |
|---|
| offset | 2 |
|---|
|
|
|---|
| endianness | "big" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "ENetProtocolCommandHeader and ENetProtocolFlag" |
|---|
| repo | "https://github.com/lsalzman/enet" |
|---|
| commit | "5a9c537fd464b3c6d3c55e1d3bd47588faf71b42" |
|---|
| path | "include/enet/protocol.h" |
|---|
|
| type | "source" |
|---|
| detail | "ENET_NET_TO_HOST_16/32 conversions of command fields" |
|---|
| repo | "https://github.com/lsalzman/enet" |
|---|
| commit | "5a9c537fd464b3c6d3c55e1d3bd47588faf71b42" |
|---|
| path | "protocol.c" |
|---|
| lines | "304-346" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Command header and flags" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T12:41:10.760Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:03:43.264Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read protocol.h at 5a9c537f: ENetProtocolCommandHeader {u8 command; u8 channelID; u16 reliableSequenceNumber}, ENET_PROTOCOL_COMMAND_MASK 0x0F, ACKNOWLEDGE 1<<7, UNSEQUENCED 1<<6; protocol.c line 427 sets channelID 0xFF on the verify-connect command." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:39:40.575Z" |
|---|
| summary | "Set byte order big: ENet converts wire fields with ENET_NET_TO_HOST_16/32 (network order)." |
|---|
| changed | |
|---|
|
|
|---|