Skip to content

Instantly share code, notes, and snippets.

@GuyGoldenberg
Created August 19, 2015 15:13
Show Gist options
  • Save GuyGoldenberg/cb97e28a2029d14434b2 to your computer and use it in GitHub Desktop.
Save GuyGoldenberg/cb97e28a2029d14434b2 to your computer and use it in GitHub Desktop.
{
"Ethernet":{
"total-length":14,
"Destination MAC":48,
"Source MAC":48,
"Type":16,
"order":[
"Destination MAC",
"Source MAC",
"Type"
]
},
"ICMP":{
"total-length":8,
"Type":8,
"Code":8,
"Checksum":16,
"order":[
"Type",
"Code",
"Checksum"
]
},
"UDP":{
"total-length":8,
"Source port":16,
"Destination port":16,
"Length":16,
"Checksum":16,
"order":[
"Source port",
"Destination port",
"Length",
"Checksum"
]
},
"TCP":{
"total-length":20,
"Source port":16,
"Destination port":16,
"Sequence Number":32,
"Acknowledgment Number":32,
"Header Length":4,
"Reserved":6,
"URG":1,
"ACK":1,
"PSH":1,
"RST":1,
"SYN":1,
"FIN":1,
"Window":16,
"Checksum":16,
"order":[
"Source port",
"Destination port",
"Sequence Number",
"Acknowledgment Number",
"Header Length",
"Reserved",
"URG",
"ACK",
"PSH",
"RST",
"SYN",
"FIN",
"Window",
"Checksum"
]
},
"IP":{
"total-length":20,
"Version":4,
"Header Length":4,
"ToS":8,
"Total Length":16,
"ID":16,
"Flags":3,
"Fragment Offset":13,
"TTL":8,
"Next Protocol":8,
"Checksum":16,
"Source IP":32,
"Destination IP":32,
"order":[
"Version",
"Header Length",
"ToS",
"Total Length",
"ID",
"Flags",
"Fragment Offset",
"TTL",
"Next Protocol",
"Checksum",
"Source IP",
"Destination IP"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment