/* trace.h 4.1 83/01/11 */
* Routing table management daemon.
time_t ift_stamp
; /* time stamp */
struct sockaddr ift_who
; /* from/to */
char *ift_packet
; /* pointer to packet */
short ift_size
; /* size of packet */
short ift_metric
; /* metric on associated metric */
* Per interface packet tracing buffers. An incoming and
* outgoing circular buffer of packets is maintained, per
* interface, for debugging. Buffers are dumped whenever
* an interface is marked down.
struct iftrace
*ifd_records
; /* array of trace records */
struct iftrace
*ifd_front
; /* next empty trace record */
struct interface
*ifd_if
; /* for locating stuff */
int tracing
; /* on/off */
FILE *ftrace
; /* output trace file */
#define TRACE_ACTION(action, route) { \
traceaction(ftrace, "action", route); \
#define TRACE_INPUT(ifp, from, size) { \
ifp = if_iflookup(from); \
trace(&ifp->int_input, from, packet, size, \
#define TRACE_OUTPUT(ifp, to, size) { \
trace(&ifp->int_output, to, packet, size, ifp->int_metric); \