Skip to content

Instantly share code, notes, and snippets.

@boxofrad
Created November 3, 2016 16:48
Show Gist options
  • Save boxofrad/eb3b11e59dae6f779d05fdb42e0020e8 to your computer and use it in GitHub Desktop.
Save boxofrad/eb3b11e59dae6f779d05fdb42e0020e8 to your computer and use it in GitHub Desktop.
def data
# Drop the first 14 bytes (MAC Header) and last 4 bytes (CRC Checksum)
IPPacket.new(bytes[14...-4])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment