11de50e9fSSam Leffler /* 21de50e9fSSam Leffler * Redistribution and use in source and binary forms, with or without 31de50e9fSSam Leffler * modification, are permitted provided that: (1) source code 41de50e9fSSam Leffler * distributions retain the above copyright notice and this paragraph 51de50e9fSSam Leffler * in its entirety, and (2) distributions including binary code include 61de50e9fSSam Leffler * the above copyright notice and this paragraph in its entirety in 71de50e9fSSam Leffler * the documentation or other materials provided with the distribution. 81de50e9fSSam Leffler * THIS SOFTWARE IS PROVIDED ``AS IS'' AND 91de50e9fSSam Leffler * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT 101de50e9fSSam Leffler * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 111de50e9fSSam Leffler * FOR A PARTICULAR PURPOSE. 121de50e9fSSam Leffler * 131de50e9fSSam Leffler * Original code by Hannes Gredler (hannes@juniper.net) 141de50e9fSSam Leffler */ 151de50e9fSSam Leffler 161de50e9fSSam Leffler #ifndef lint 171de50e9fSSam Leffler static const char rcsid[] _U_ = 18f4d0c64aSSam Leffler "@(#) $Header: /tcpdump/master/tcpdump/ipproto.c,v 1.3.2.2 2005/05/20 21:15:45 hannes Exp $ (LBL)"; 191de50e9fSSam Leffler #endif 201de50e9fSSam Leffler 211de50e9fSSam Leffler #ifdef HAVE_CONFIG_H 221de50e9fSSam Leffler #include "config.h" 231de50e9fSSam Leffler #endif 241de50e9fSSam Leffler 251de50e9fSSam Leffler #include <tcpdump-stdinc.h> 261de50e9fSSam Leffler 271de50e9fSSam Leffler #include "interface.h" 28f4d0c64aSSam Leffler #include "ipproto.h" 291de50e9fSSam Leffler 301de50e9fSSam Leffler struct tok ipproto_values[] = { 311de50e9fSSam Leffler { IPPROTO_HOPOPTS, "Options" }, 321de50e9fSSam Leffler { IPPROTO_ICMP, "ICMP" }, 331de50e9fSSam Leffler { IPPROTO_IGMP, "IGMP" }, 341de50e9fSSam Leffler { IPPROTO_IPV4, "IPIP" }, 351de50e9fSSam Leffler { IPPROTO_TCP, "TCP" }, 361de50e9fSSam Leffler { IPPROTO_EGP, "EGP" }, 371de50e9fSSam Leffler { IPPROTO_PIGP, "IGRP" }, 381de50e9fSSam Leffler { IPPROTO_UDP, "UDP" }, 391de50e9fSSam Leffler { IPPROTO_IPV6, "IPv6" }, 401de50e9fSSam Leffler { IPPROTO_ROUTING, "Routing" }, 411de50e9fSSam Leffler { IPPROTO_FRAGMENT, "Fragment" }, 421de50e9fSSam Leffler { IPPROTO_RSVP, "RSVP" }, 431de50e9fSSam Leffler { IPPROTO_GRE, "GRE" }, 441de50e9fSSam Leffler { IPPROTO_ESP, "ESP" }, 451de50e9fSSam Leffler { IPPROTO_AH, "AH" }, 461de50e9fSSam Leffler { IPPROTO_MOBILE, "Mobile IP" }, 471de50e9fSSam Leffler { IPPROTO_ICMPV6, "ICMPv6" }, 481de50e9fSSam Leffler { IPPROTO_MOBILITY_OLD, "Mobile IP (old)" }, 491de50e9fSSam Leffler { IPPROTO_EIGRP, "EIGRP" }, 501de50e9fSSam Leffler { IPPROTO_OSPF, "OSPF" }, 511de50e9fSSam Leffler { IPPROTO_PIM, "PIM" }, 521de50e9fSSam Leffler { IPPROTO_IPCOMP, "Compressed IP" }, 531de50e9fSSam Leffler { IPPROTO_VRRP, "VRRP" }, 54f4d0c64aSSam Leffler { IPPROTO_PGM, "PGM" }, 551de50e9fSSam Leffler { IPPROTO_SCTP, "SCTP" }, 561de50e9fSSam Leffler { IPPROTO_MOBILITY, "Mobility" }, 571de50e9fSSam Leffler { 0, NULL } 581de50e9fSSam Leffler }; 591de50e9fSSam Leffler 60