PGEN-ICMP

pgen_icmp can analyze ICMP packet, inheriting pgen_ip class. More ICMP’s information, please see, RFC792 and ICMP(Wikipedia).

 

Packet Format

 

Member Variable

  • ICMP.type                                                                    Type
  • ICMP.code                                                                   Code
  • ICMP.echo.id                                                              Echo/Echo reply identification
  • ICMP.echo.seq                                                           Echo/Echo reply sequence number
  • ICMP.redirect.gw_addr                                           Redirect gateway ip address
  • ICMP.destination_unreach.len                             Destination unreachable packet length
  • ICMP.destination_unreach.next_mtu                 Destination unreachable next mtu
  • ICMP.time_exceeded.len                                        Time exceeded packet length

 

Sample Code

 

This is execution result.

 

Comments are closed.