2014-01-02 10:27:54 +08:00
|
|
|
/*
|
2004-04-27 01:49:44 +08:00
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that: (1) source code
|
|
|
|
* distributions retain the above copyright notice and this paragraph
|
|
|
|
* in its entirety, and (2) distributions including binary code include
|
|
|
|
* the above copyright notice and this paragraph in its entirety in
|
|
|
|
* the documentation or other materials provided with the distribution.
|
|
|
|
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND
|
|
|
|
* WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
|
|
|
|
* LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
|
|
* FOR A PARTICULAR PURPOSE.
|
|
|
|
*
|
|
|
|
* Original code by Hannes Gredler (hannes@juniper.net)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
2015-09-10 04:42:38 +08:00
|
|
|
#include <netdissect-stdinc.h>
|
2004-04-27 01:49:44 +08:00
|
|
|
|
2015-09-11 19:22:56 +08:00
|
|
|
#include "netdissect.h"
|
2005-05-14 08:42:28 +08:00
|
|
|
#include "ipproto.h"
|
2004-04-27 01:49:44 +08:00
|
|
|
|
2010-02-20 15:45:56 +08:00
|
|
|
const struct tok ipproto_values[] = {
|
2004-04-27 01:49:44 +08:00
|
|
|
{ IPPROTO_HOPOPTS, "Options" },
|
|
|
|
{ IPPROTO_ICMP, "ICMP" },
|
|
|
|
{ IPPROTO_IGMP, "IGMP" },
|
|
|
|
{ IPPROTO_IPV4, "IPIP" },
|
|
|
|
{ IPPROTO_TCP, "TCP" },
|
|
|
|
{ IPPROTO_EGP, "EGP" },
|
2004-04-29 10:16:40 +08:00
|
|
|
{ IPPROTO_PIGP, "IGRP" },
|
2004-04-27 01:49:44 +08:00
|
|
|
{ IPPROTO_UDP, "UDP" },
|
2005-09-20 14:01:20 +08:00
|
|
|
{ IPPROTO_DCCP, "DCCP" },
|
2004-04-27 01:49:44 +08:00
|
|
|
{ IPPROTO_IPV6, "IPv6" },
|
|
|
|
{ IPPROTO_ROUTING, "Routing" },
|
|
|
|
{ IPPROTO_FRAGMENT, "Fragment" },
|
|
|
|
{ IPPROTO_RSVP, "RSVP" },
|
|
|
|
{ IPPROTO_GRE, "GRE" },
|
|
|
|
{ IPPROTO_ESP, "ESP" },
|
|
|
|
{ IPPROTO_AH, "AH" },
|
|
|
|
{ IPPROTO_MOBILE, "Mobile IP" },
|
|
|
|
{ IPPROTO_ICMPV6, "ICMPv6" },
|
|
|
|
{ IPPROTO_MOBILITY_OLD, "Mobile IP (old)" },
|
|
|
|
{ IPPROTO_EIGRP, "EIGRP" },
|
|
|
|
{ IPPROTO_OSPF, "OSPF" },
|
|
|
|
{ IPPROTO_PIM, "PIM" },
|
|
|
|
{ IPPROTO_IPCOMP, "Compressed IP" },
|
|
|
|
{ IPPROTO_VRRP, "VRRP" },
|
2005-05-21 05:02:29 +08:00
|
|
|
{ IPPROTO_PGM, "PGM" },
|
2004-12-15 16:41:26 +08:00
|
|
|
{ IPPROTO_SCTP, "SCTP" },
|
2004-04-27 01:49:44 +08:00
|
|
|
{ IPPROTO_MOBILITY, "Mobility" },
|
2011-11-24 03:53:13 +08:00
|
|
|
{ IPPROTO_CARP, "CARP" },
|
2004-04-27 01:49:44 +08:00
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|