/* Calculate buffer size able to transmit in a specific time and rate.  */
int rtnl_tc_calc_bufsize(int txtime, int rate)
/* Calculate buffer size able to transmit in a specific time and rate.  */
int rtnl_tc_calc_bufsize(int txtime, int rate)
{
	double bufsize;
	bufsize = (double) txtime * (double) rate;
	return bufsize / 1000000.;
}