On 2016-04-30 at 16:39:19 +0200, Vadim Kochan <vadi...@gmail.com> wrote: > Add 'icmpv4()' function to create ICMPv4 header. > > Parameters suported: > > type Set type field (default 0: Echo reply) > code Set code field (default 0) > csum Set checksum field (calculated by default) > unused Set 4-byte unused field (default 0) > mtu Set mtu field for destination unreachable (default 0) > seq Set sequence field (default 0) > id Set identifier field (default 0) > addr Set redirect address (default 0) > > The following message types are supported: > > net-unreach Set 'Destination network is unreachable' message type > host-unreach Set 'Destination host is unreachable' message type > prot-unreach Set 'Destination protocol is unreachable' message type > port-unreach Set 'Destination port is unreachable' message type
These two can easily be confused or typoed - but see my remark below. > net-tos-unreach Set 'Destination network & ToS is unreachable' > message type > host-tos-unreach Set 'Destination host & ToS is unreachable' message > type > frag-needed Set 'Fragmentation is needed' message type > route-failed Set 'Source route is failed' message type > net-unknown Set 'Destination network is unknown' message type > host-unknown Set 'Destination host is unknown' message type > host-isolated Set 'Source host isolated' message type > net-forbidden Set 'Network is adimnistratively prohibited' message > type > host-forbidden Set 'Host is administratively prohibited' message type > pkt-filtered Set 'Packet is filtered' message type > > net-redirect Set 'Redirect datagram for the network' message type > host-redirect Set 'Redirect datagram for the host' message type > net-tos-redirect Set 'Redirect datagram for the ToS & network' message > type > host-tos-redirect Set 'Redirect datagram for the ToS & host' message > type > > ttl-timeout Set 'TTL expired in transit' message type > frag-timeout Set 'Fragment reassembly time exceeded' message type IMO it's a bit of an overkill to add an extra keyword for every (possibly seldomly used) message type. I guess we can expect users to look up the codes for these particular message types in the RFC in case they want to use them. -- 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 netsniff-ng+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.