ipproto.c revision 147899
1146773Ssam/* 2146773Ssam * Redistribution and use in source and binary forms, with or without 3146773Ssam * modification, are permitted provided that: (1) source code 4146773Ssam * distributions retain the above copyright notice and this paragraph 5146773Ssam * in its entirety, and (2) distributions including binary code include 6146773Ssam * the above copyright notice and this paragraph in its entirety in 7146773Ssam * the documentation or other materials provided with the distribution. 8146773Ssam * THIS SOFTWARE IS PROVIDED ``AS IS'' AND 9146773Ssam * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT 10146773Ssam * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 11146773Ssam * FOR A PARTICULAR PURPOSE. 12146773Ssam * 13146773Ssam * Original code by Hannes Gredler (hannes@juniper.net) 14146773Ssam */ 15146773Ssam 16146773Ssam#ifndef lint 17146773Ssamstatic const char rcsid[] _U_ = 18147899Ssam "@(#) $Header: /tcpdump/master/tcpdump/ipproto.c,v 1.3.2.2 2005/05/20 21:15:45 hannes Exp $ (LBL)"; 19146773Ssam#endif 20146773Ssam 21146773Ssam#ifdef HAVE_CONFIG_H 22146773Ssam#include "config.h" 23146773Ssam#endif 24146773Ssam 25146773Ssam#include <tcpdump-stdinc.h> 26146773Ssam 27147899Ssam#include "interface.h" 28146773Ssam#include "ipproto.h" 29146773Ssam 30146773Ssamstruct tok ipproto_values[] = { 31146773Ssam { IPPROTO_HOPOPTS, "Options" }, 32146773Ssam { IPPROTO_ICMP, "ICMP" }, 33146773Ssam { IPPROTO_IGMP, "IGMP" }, 34146773Ssam { IPPROTO_IPV4, "IPIP" }, 35146773Ssam { IPPROTO_TCP, "TCP" }, 36146773Ssam { IPPROTO_EGP, "EGP" }, 37146773Ssam { IPPROTO_PIGP, "IGRP" }, 38146773Ssam { IPPROTO_UDP, "UDP" }, 39146773Ssam { IPPROTO_IPV6, "IPv6" }, 40146773Ssam { IPPROTO_ROUTING, "Routing" }, 41146773Ssam { IPPROTO_FRAGMENT, "Fragment" }, 42146773Ssam { IPPROTO_RSVP, "RSVP" }, 43146773Ssam { IPPROTO_GRE, "GRE" }, 44146773Ssam { IPPROTO_ESP, "ESP" }, 45146773Ssam { IPPROTO_AH, "AH" }, 46146773Ssam { IPPROTO_MOBILE, "Mobile IP" }, 47146773Ssam { IPPROTO_ICMPV6, "ICMPv6" }, 48146773Ssam { IPPROTO_MOBILITY_OLD, "Mobile IP (old)" }, 49146773Ssam { IPPROTO_EIGRP, "EIGRP" }, 50146773Ssam { IPPROTO_OSPF, "OSPF" }, 51146773Ssam { IPPROTO_PIM, "PIM" }, 52146773Ssam { IPPROTO_IPCOMP, "Compressed IP" }, 53146773Ssam { IPPROTO_VRRP, "VRRP" }, 54147899Ssam { IPPROTO_PGM, "PGM" }, 55146773Ssam { IPPROTO_SCTP, "SCTP" }, 56146773Ssam { IPPROTO_MOBILITY, "Mobility" }, 57146773Ssam { 0, NULL } 58146773Ssam}; 59146773Ssam 60