Skip to content

Instantly share code, notes, and snippets.

@chintanparikh
Created April 13, 2015 22:20
Show Gist options
  • Save chintanparikh/7de4fe44a6c47ff91e09 to your computer and use it in GitHub Desktop.
Save chintanparikh/7de4fe44a6c47ff91e09 to your computer and use it in GitHub Desktop.
source ip - 32 bits (4 x 8 bits)
dest ip - 32 bits (4 x 8 bits)
source port - 16 bits
dest port - 16 bits
seq num - 32 bits
ack num - 32 bits
SYN flag - 1 bit
ACK flag - 1 bit
FIN flag - 1 bit
wasted space - 13 bits
checksum - 16 bits
Example array
[12, 34, 67, 2, 54, 21, 7, 78, 5678, 5679, 2568445870, 0, 1, 0, 0, '', 31]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment