FreeBSD/contrib/tcpdump/print-calm-fast.c
/*
 * This is the top level routine of the printer.  'bp' points
 * to the calm header of the packet.
 */
This is the top level routine of the printer.  'bp' points
to the calm header of the packet.
This is the top level routine of the printer . ' bp ' points to the calm header of the packet .
void
calm_fast_print(netdissect_options *ndo, const u_char *eth, const u_char *bp, u_int length)
{
	int srcNwref = bp[0];
	int dstNwref = bp[1];
	length -= 2;
	bp += 2;
	ND_PRINT((ndo, "CALM FAST src:%s; ", etheraddr_string(ndo, eth+6)));
	ND_PRINT((ndo, "SrcNwref:%d; ", srcNwref));
	ND_PRINT((ndo, "DstNwref:%d; ", dstNwref));
	if (ndo->ndo_vflag)
		ND_DEFAULTPRINT(bp, length);
}
void calm_fast_print ( netdissect_options * ndo , const u_char * eth , const u_char * bp , u_int length ) { int srcNwref = bp [ 0 ] ; int dstNwref = bp [ 1 ] ; length -= 2 ; bp += 2 ; ND_PRINT ( ( ndo , " " , etheraddr_string ( ndo , eth + 6 ) ) ) ; ND_PRINT ( ( ndo , " " , srcNwref ) ) ; ND_PRINT ( ( ndo , " " , dstNwref ) ) ; if ( ndo -> ndo_vflag ) ND_DEFAULTPRINT ( bp , length ) ; }
This is the top level routine of the printer.
This is the top level routine of the printer .