1116743Ssam/* 2186904Ssam * Redistribution and use in source and binary forms, with or without 3116743Ssam * modification, are permitted provided that: (1) source code 4116743Ssam * distributions retain the above copyright notice and this paragraph 5116743Ssam * in its entirety, and (2) distributions including binary code include 6116743Ssam * the above copyright notice and this paragraph in its entirety in 7116743Ssam * the documentation or other materials provided with the distribution. 8116743Ssam * THIS SOFTWARE IS PROVIDED ``AS IS'' AND 9116743Ssam * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT 10116743Ssam * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 11116743Ssam * FOR A PARTICULAR PURPOSE. 12116743Ssam * 13116743Ssam * Original code by Hannes Gredler (hannes@juniper.net) 14116743Ssam */ 15116743Ssam 16116743Ssam#define NETDISSECT_REWORKED 17116743Ssam#ifdef HAVE_CONFIG_H 18116743Ssam#include "config.h" 19116743Ssam#endif 20116743Ssam 21116743Ssam#include <tcpdump-stdinc.h> 22116743Ssam 23116743Ssam#include "interface.h" 24116743Ssam#include "ipproto.h" 25116743Ssam 26116743Ssamconst struct tok ipproto_values[] = { 27116743Ssam { IPPROTO_HOPOPTS, "Options" }, 28116743Ssam { IPPROTO_ICMP, "ICMP" }, 29116743Ssam { IPPROTO_IGMP, "IGMP" }, 30116743Ssam { IPPROTO_IPV4, "IPIP" }, 31116743Ssam { IPPROTO_TCP, "TCP" }, 32116743Ssam { IPPROTO_EGP, "EGP" }, 33116743Ssam { IPPROTO_PIGP, "IGRP" }, 34116743Ssam { IPPROTO_UDP, "UDP" }, 35116743Ssam { IPPROTO_DCCP, "DCCP" }, 36116743Ssam { IPPROTO_IPV6, "IPv6" }, 37116743Ssam { IPPROTO_ROUTING, "Routing" }, 38227327Sadrian { IPPROTO_FRAGMENT, "Fragment" }, 39227327Sadrian { IPPROTO_RSVP, "RSVP" }, 40227327Sadrian { IPPROTO_GRE, "GRE" }, 41227327Sadrian { IPPROTO_ESP, "ESP" }, 42227327Sadrian { IPPROTO_AH, "AH" }, 43227327Sadrian { IPPROTO_MOBILE, "Mobile IP" }, 44227327Sadrian { IPPROTO_ICMPV6, "ICMPv6" }, 45227327Sadrian { IPPROTO_MOBILITY_OLD, "Mobile IP (old)" }, 46233989Sadrian { IPPROTO_EIGRP, "EIGRP" }, 47227327Sadrian { IPPROTO_OSPF, "OSPF" }, 48227327Sadrian { IPPROTO_PIM, "PIM" }, 49234090Sadrian { IPPROTO_IPCOMP, "Compressed IP" }, 50234090Sadrian { IPPROTO_VRRP, "VRRP" }, 51234090Sadrian { IPPROTO_PGM, "PGM" }, 52234090Sadrian { IPPROTO_SCTP, "SCTP" }, 53116743Ssam { IPPROTO_MOBILITY, "Mobility" }, 54116743Ssam { IPPROTO_CARP, "CARP" }, 55116743Ssam { IPPROTO_PFSYNC, "pfsync" }, 56116743Ssam { 0, NULL } 57155492Ssam}; 58138570Ssam 59116743Ssam