X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/795db2fe9b5e5f4af9d9ff0a24396b74fa4c912f..refs/pull/377/head:/ipproto.c diff --git a/ipproto.c b/ipproto.c old mode 100755 new mode 100644 index ccccb2fa..e44b7481 --- a/ipproto.c +++ b/ipproto.c @@ -1,4 +1,4 @@ -/* +/* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that: (1) source code * distributions retain the above copyright notice and this paragraph @@ -13,21 +13,17 @@ * Original code by Hannes Gredler (hannes@juniper.net) */ -#ifndef lint -static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/ipproto.c,v 1.2 2004-04-29 02:16:40 mcr Exp $ (LBL)"; -#endif - +#define NETDISSECT_REWORKED #ifdef HAVE_CONFIG_H #include "config.h" #endif #include -#include "ipproto.h" #include "interface.h" +#include "ipproto.h" -struct tok ipproto_values[] = { +const struct tok ipproto_values[] = { { IPPROTO_HOPOPTS, "Options" }, { IPPROTO_ICMP, "ICMP" }, { IPPROTO_IGMP, "IGMP" }, @@ -36,6 +32,7 @@ struct tok ipproto_values[] = { { IPPROTO_EGP, "EGP" }, { IPPROTO_PIGP, "IGRP" }, { IPPROTO_UDP, "UDP" }, + { IPPROTO_DCCP, "DCCP" }, { IPPROTO_IPV6, "IPv6" }, { IPPROTO_ROUTING, "Routing" }, { IPPROTO_FRAGMENT, "Fragment" }, @@ -51,8 +48,10 @@ struct tok ipproto_values[] = { { IPPROTO_PIM, "PIM" }, { IPPROTO_IPCOMP, "Compressed IP" }, { IPPROTO_VRRP, "VRRP" }, - { IPPROTO_SCTP, "STCP" }, + { IPPROTO_PGM, "PGM" }, + { IPPROTO_SCTP, "SCTP" }, { IPPROTO_MOBILITY, "Mobility" }, + { IPPROTO_CARP, "CARP" }, { 0, NULL } };