net_xmit_trace Kernel Service

Purpose

Traces transmit packets.

Syntax

#include <sys/types.h>
#include <sys/errno.h>

int net_xmit_trace (  ifp,  mbuf )
struct ifnet *ifp;
struct mbuf *mbuf;

Parameters

Item Description
ifp Designates the address of the ifnet structure for this interface.
mbuf Designates the address of the mbuf structure to be traced.

Description

The net_xmit_trace kernel service traces the data pointed to by the mbuf parameter. This kernel service was added for those network interfaces that choose not to use the net_xmit kernel service to transmit packets. An application program (the iptrace command) reads the trace data and writes it to a file for the ipreport command to interpret.

Execution Environment

The net_xmit_trace kernel service can be called from either the process or interrupt environment.

Return Values

The net_xmit_trace kernel service has no return values.