kernels/linux-2.4.0/drivers/net/tokenring/tms380tr.c
/*
 * The function updates the statistic counters in mac->MacStat.
 * It differtiates between directed and broadcast/multicast ( ==functional)
 * frames.
 */
The function updates the statistic counters in mac->MacStat.
It differtiates between directed and broadcast/multicast ( ==functional)
frames.
The function updates the statistic counters in mac - > MacStat . It differtiates between directed and broadcast / multicast ( == functional ) frames .
static void tms380tr_update_rcv_stats(struct net_local *tp, unsigned char DataPtr[],
					unsigned int Length)
{
	tp->MacStat.rx_packets++;
	tp->MacStat.rx_bytes += Length;
	if(DataPtr[2] & GROUP_BIT)
		tp->MacStat.multicast++;
	return;
}
static void tms380tr_update_rcv_stats ( struct net_local * tp , unsigned char DataPtr [ ] , unsigned int Length ) { tp -> MacStat . rx_packets ++ ; tp -> MacStat . rx_bytes += Length ; if ( DataPtr [ 2 ] & GROUP_BIT ) tp -> MacStat . multicast ++ ; return ; }
The function updates the statistic counters in mac->MacStat.
The function updates the statistic counters in mac - > MacStat .
/* Test functional bit */