ipproto.c revision 214478
11553Srgrimes/*
21553Srgrimes * Redistribution and use in source and binary forms, with or without
31553Srgrimes * modification, are permitted provided that: (1) source code
41553Srgrimes * distributions retain the above copyright notice and this paragraph
51553Srgrimes * in its entirety, and (2) distributions including binary code include
61553Srgrimes * the above copyright notice and this paragraph in its entirety in
71553Srgrimes * the documentation or other materials provided with the distribution.
81553Srgrimes * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
91553Srgrimes * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
101553Srgrimes * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
111553Srgrimes * FOR A PARTICULAR PURPOSE.
121553Srgrimes *
131553Srgrimes * Original code by Hannes Gredler (hannes@juniper.net)
141553Srgrimes */
151553Srgrimes
161553Srgrimes#ifndef lint
171553Srgrimesstatic const char rcsid[] _U_ =
181553Srgrimes    "@(#) $Header: /tcpdump/master/tcpdump/ipproto.c,v 1.6 2005-09-20 06:01:22 guy Exp $ (LBL)";
191553Srgrimes#endif
201553Srgrimes
211553Srgrimes#ifdef HAVE_CONFIG_H
221553Srgrimes#include "config.h"
231553Srgrimes#endif
241553Srgrimes
251553Srgrimes#include <tcpdump-stdinc.h>
261553Srgrimes
271553Srgrimes#include "interface.h"
281553Srgrimes#include "ipproto.h"
291553Srgrimes
301553Srgrimesconst struct tok ipproto_values[] = {
311553Srgrimes    { IPPROTO_HOPOPTS, "Options" },
3231492Swollman    { IPPROTO_ICMP, "ICMP" },
331553Srgrimes    { IPPROTO_IGMP, "IGMP" },
341553Srgrimes    { IPPROTO_IPV4, "IPIP" },
351553Srgrimes    { IPPROTO_TCP, "TCP" },
361553Srgrimes    { IPPROTO_EGP, "EGP" },
37117554Sgad    { IPPROTO_PIGP, "IGRP" },
38117587Sgad    { IPPROTO_UDP, "UDP" },
3915648Sjoerg    { IPPROTO_DCCP, "DCCP" },
40117587Sgad    { IPPROTO_IPV6, "IPv6" },
41117554Sgad    { IPPROTO_ROUTING, "Routing" },
421553Srgrimes    { IPPROTO_FRAGMENT, "Fragment" },
43117554Sgad    { IPPROTO_RSVP, "RSVP" },
44117554Sgad    { IPPROTO_GRE, "GRE" },
451553Srgrimes    { IPPROTO_ESP, "ESP" },
461553Srgrimes    { IPPROTO_AH, "AH" },
471553Srgrimes    { IPPROTO_MOBILE, "Mobile IP" },
481553Srgrimes    { IPPROTO_ICMPV6, "ICMPv6" },
491553Srgrimes    { IPPROTO_MOBILITY_OLD, "Mobile IP (old)" },
501553Srgrimes    { IPPROTO_EIGRP, "EIGRP" },
511553Srgrimes    { IPPROTO_OSPF, "OSPF" },
521553Srgrimes    { IPPROTO_PIM, "PIM" },
531553Srgrimes    { IPPROTO_IPCOMP, "Compressed IP" },
541553Srgrimes    { IPPROTO_VRRP, "VRRP" },
551553Srgrimes    { IPPROTO_PGM, "PGM" },
561553Srgrimes    { IPPROTO_SCTP, "SCTP" },
571553Srgrimes    { IPPROTO_MOBILITY, "Mobility" },
581553Srgrimes    { 0, NULL }
591553Srgrimes};
601553Srgrimes
611553Srgrimes