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_ = 18190207Srpaulo "@(#) $Header: /tcpdump/master/tcpdump/ipproto.c,v 1.6 2005-09-20 06:01:22 guy 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 30214478Srpauloconst struct 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" }, 39162017Ssam { IPPROTO_DCCP, "DCCP" }, 40146773Ssam { IPPROTO_IPV6, "IPv6" }, 41146773Ssam { IPPROTO_ROUTING, "Routing" }, 42146773Ssam { IPPROTO_FRAGMENT, "Fragment" }, 43146773Ssam { IPPROTO_RSVP, "RSVP" }, 44146773Ssam { IPPROTO_GRE, "GRE" }, 45146773Ssam { IPPROTO_ESP, "ESP" }, 46146773Ssam { IPPROTO_AH, "AH" }, 47146773Ssam { IPPROTO_MOBILE, "Mobile IP" }, 48146773Ssam { IPPROTO_ICMPV6, "ICMPv6" }, 49146773Ssam { IPPROTO_MOBILITY_OLD, "Mobile IP (old)" }, 50146773Ssam { IPPROTO_EIGRP, "EIGRP" }, 51146773Ssam { IPPROTO_OSPF, "OSPF" }, 52146773Ssam { IPPROTO_PIM, "PIM" }, 53146773Ssam { IPPROTO_IPCOMP, "Compressed IP" }, 54146773Ssam { IPPROTO_VRRP, "VRRP" }, 55147899Ssam { IPPROTO_PGM, "PGM" }, 56146773Ssam { IPPROTO_SCTP, "SCTP" }, 57146773Ssam { IPPROTO_MOBILITY, "Mobility" }, 58236192Sdelphij { IPPROTO_CARP, "CARP" }, 59252283Sdelphij { IPPROTO_PFSYNC, "pfsync" }, 60146773Ssam { 0, NULL } 61146773Ssam}; 62146773Ssam 63