PGEN-TCP

pgen_tcp class can analyze TCP packet, inheriting pgen_ip class. More TCP’s information, please see RFC793 and TCP(Wikipedia).

 

Packet Format

 

Member Variable

  • TCP.src            source port
  • TCP.dst            dest port
  • TCP.seq            sequence number
  • TCP.ack            acknowledge number
  • TCP.doff           data offset (tcp header length)
  • TCP.flags.fin      fin flag
  • TCP.flags.syn      syn flag
  • TCP.flags.rst      rst flag
  • TCP.flags.psh      psh flag
  • TCP.flags.ack      ack flag
  • TCP.flags.urg      urg flag
  • TCP.window         window size

 

Sample Code

 

This is execution result.

 

 

Comments are closed.