From 2494489f353737a9a0a0dfb412b041a447f76aa2 Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 27 Oct 1995 10:48:31 +0000 Subject: 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) :) --- usr.sbin/IPXrouted/trace.h | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'usr.sbin/IPXrouted/trace.h') 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 *); -- cgit v1.1