X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/a5370b71fe0fdecac8a10ad2e0e5545f01f95f6e..refs/pull/377/head:/ipproto.c diff --git a/ipproto.c b/ipproto.c old mode 100755 new mode 100644 index d4586449..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,11 +13,7 @@ * Original code by Hannes Gredler (hannes@juniper.net) */ -#ifndef lint -static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/ipproto.c,v 1.5 2005-05-20 21:02:30 hannes Exp $ (LBL)"; -#endif - +#define NETDISSECT_REWORKED #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -27,7 +23,7 @@ static const char rcsid[] _U_ = #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" }, @@ -54,6 +51,7 @@ struct tok ipproto_values[] = { { IPPROTO_PGM, "PGM" }, { IPPROTO_SCTP, "SCTP" }, { IPPROTO_MOBILITY, "Mobility" }, + { IPPROTO_CARP, "CARP" }, { 0, NULL } };