Add ICMPv4 protocol header creating.

Changed echorequest to echo-request, and echoreply to echo-reply
which looks more readable.

The following ICMPv4 parameters are supported:

    type 
    code
    csum
    mtu
    seq
    id
    addr

The following message types are supported:

    net-unreach
    host-unreach
    prot-unreach
    port-unreach
    net-tos-unreach
    host-tos-unreach
    frag-needed
    route-failed
    net-unknown 
    host-unknown
    host-isolated
    net-forbidden
    host-forbidden
    pkt-filtered

    net-redirect
    host-redirect
    net-tos-redirect
    host-tos-redirect

    ttl-timeout
    frag-timeout

Vadim Kochan (6):
  trafgen: parser: Split [e]type to separate keywords
  trafgen: parser: Replace 'mtype' by 'type'
  trafgen: parser: Split echorequest & echoreply with "-"
  trafgen: l3: Add creating ICMPv4 header
  trafgen: parser: Add function to build ICMPv4 header
  trafgen: man: Add description for icmpv4() function

 trafgen.8        | 126 +++++++++++++++++++++++++++++++++++++++++++++++++++++--
 trafgen_l3.c     |   3 ++
 trafgen_l4.c     |  42 +++++++++++++++++++
 trafgen_l4.h     |  10 +++++
 trafgen_lexer.l  |  37 ++++++++++++++--
 trafgen_parser.y | 114 ++++++++++++++++++++++++++++++++++++++++++++++---
 trafgen_proto.h  |   1 +
 7 files changed, 319 insertions(+), 14 deletions(-)

-- 
2.6.3

-- 
You received this message because you are subscribed to the Google Groups 
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to