Commit 1217a217 authored by Russell D's avatar Russell D

Update af_packet_parser

parent b2aee4a6
......@@ -22,9 +22,9 @@ def main():
(src_port, dest_port, sequence, acknowledgement, flag_urg, flag_ack, flag_psh, flag_rst, flag_syn, flag_fin, data) = tcp_segment(data)
print('Source_port: {}, destination_port: {}'.format(src_port, dest_port))
print('Data: {}'.format(data))
print(len(data))
print('\nIPv4 payload hexcode:')
hexdata = data.hex()
print(hexdata)
if ipprotocol == 1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment