summaryrefslogtreecommitdiffstats
path: root/usr.sbin/IPXrouted/trace.h
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1995-10-27 10:48:31 +0000
committerjulian <julian@FreeBSD.org>1995-10-27 10:48:31 +0000
commit2494489f353737a9a0a0dfb412b041a447f76aa2 (patch)
tree79f62b7e310d8aaa41586909ba37d7589857ad4e /usr.sbin/IPXrouted/trace.h
parent097421f540c5e463d5555f21dda599c749369da8 (diff)
downloadFreeBSD-src-2494489f353737a9a0a0dfb412b041a447f76aa2.zip
FreeBSD-src-2494489f353737a9a0a0dfb412b041a447f76aa2.tar.gz
Submitted by: john hay
patches to merge the two IPX packages to work with each other and to not break make-world :) IPXrouted should be working now, (or at least compiling) :)
Diffstat (limited to 'usr.sbin/IPXrouted/trace.h')
-rw-r--r--usr.sbin/IPXrouted/trace.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/usr.sbin/IPXrouted/trace.h b/usr.sbin/IPXrouted/trace.h
index 41d21ae..6a88079 100644
--- a/usr.sbin/IPXrouted/trace.h
+++ b/usr.sbin/IPXrouted/trace.h
@@ -37,7 +37,7 @@
*
* @(#)trace.h 8.1 (Berkeley) 6/5/93
*
- * $Id: trace.h,v 1.4 1995/10/11 18:57:34 jhay Exp $
+ * $Id: trace.h,v 1.1 1995/10/26 21:28:30 julian Exp $
*/
/*
@@ -83,30 +83,38 @@ FILE *ftrace; /* output trace file */
if (tracing) { \
ifp = if_iflookup(src); \
if (ifp) \
- trace(&ifp->int_input, src, &packet[sizeof(struct ipxdp)], size, \
+ trace(&ifp->int_input, src, \
+ &packet[sizeof(struct ipx)], size, \
ntohl(ifp->int_metric)); \
} \
if (tracepackets && ftrace) \
- dumppacket(ftrace, "from", src, &packet[sizeof(struct ipxdp)], size); \
+ dumppacket(ftrace, "from", src, \
+ &packet[sizeof(struct ipx)], size); \
}
#define TRACE_OUTPUT(ifp, dst, size) { \
if (tracing) { \
ifp = if_iflookup(dst); \
if (ifp) \
- trace(&ifp->int_output, dst, &packet[sizeof(struct ipxdp)], size, ifp->int_metric); \
+ trace(&ifp->int_output, dst, \
+ &packet[sizeof(struct ipx)], \
+ size, ifp->int_metric); \
} \
if (tracepackets && ftrace) \
- dumppacket(ftrace, "to", dst, &packet[sizeof(struct ipxdp)], size); \
+ dumppacket(ftrace, "to", dst, \
+ &packet[sizeof(struct ipx)], size); \
}
#define TRACE_SAP_OUTPUT(ifp, dst, size) { \
if (tracing) { \
ifp = if_iflookup(dst); \
if (ifp) \
- trace(&ifp->int_output, dst, &packet[sizeof(struct ipxdp)], size, ifp->int_metric); \
+ trace(&ifp->int_output, dst, \
+ &packet[sizeof(struct ipx)], \
+ size, ifp->int_metric); \
} \
if (tracepackets && ftrace) \
- dumpsappacket(ftrace, "to", dst, &packet[sizeof(struct ipxdp)], size); \
+ dumpsappacket(ftrace, "to", dst, \
+ &packet[sizeof(struct ipx)], size); \
}
void traceinit(struct interface *);
OpenPOWER on IntegriCloud