#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-sunrpc.c,v 1.32 2000-06-10 05:38:00 itojun Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-sunrpc.c,v 1.39 2000-10-07 05:53:13 itojun Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
#include <sys/time.h>
#include <sys/socket.h>
-#if __STDC__
struct mbuf;
struct rtentry;
-#endif
-#include <net/if.h>
#include <netinet/in.h>
-#include <netinet/if_ether.h>
-#include <netinet/in_systm.h>
-#include <netinet/ip.h>
-#include <netinet/ip_var.h>
-#ifdef INET6
-#include <netinet/ip6.h>
-#endif
#include <rpc/rpc.h>
#ifdef HAVE_RPC_RPCENT_H
#include "interface.h"
#include "addrtoname.h"
+#include "ip.h"
+#ifdef INET6
+#include "ip6.h"
+#endif
+
static struct tok proc2str[] = {
{ PMAPPROC_NULL, "null" },
{ PMAPPROC_SET, "set" },
snprintf(dstid, sizeof(dstid), "0x%x", PMAPPORT);
}
- switch (((struct ip *)bp2)->ip_v) {
+ switch (IP_V((struct ip *)bp2)) {
case 4:
ip = (struct ip *)bp2;
printf("%s.%s > %s.%s: %d",