FreeBSD/sbin/atm/atmconfig/diag.c
/*
 * Print the VCC table for this interface, ABR traffic parameters.
 */
Print the VCC table for this interface, ABR traffic parameters.
Print the VCC table for this interface ABR traffic parameters .
static void
print_abr(const struct diagif *aif)
{
	const struct atmio_vcc *v;
	for (v = aif->vtab->vccs; v < &aif->vtab->vccs[aif->vtab->count]; v++) {
		printf("%-6u%-9s%-4u%-6u", aif->index, aif->ifname,
		    v->vpi, v->vci);
		if (v->traffic == ATMIO_TRAFFIC_ABR) {
			printf("%-8u%-8u%-4u%-4u%-5u%-5u%-5u%u",
			    v->tparam.icr, v->tparam.tbe, v->tparam.nrm,
			    v->tparam.trm, v->tparam.adtf, v->tparam.rif,
			    v->tparam.rdf, v->tparam.cdf);
		}
		printf("\n");
	}
}
static void print_abr ( const struct diagif * aif ) { const struct atmio_vcc * v ; for ( v = aif -> vtab -> vccs ; v < & aif -> vtab -> vccs [ aif -> vtab -> count ] ; v ++ ) { printf ( " " , aif -> index , aif -> ifname , v -> vpi , v -> vci ) ; if ( v -> traffic == ATMIO_TRAFFIC_ABR ) { printf ( " " , v -> tparam . icr , v -> tparam . tbe , v -> tparam . nrm , v -> tparam . trm , v -> tparam . adtf , v -> tparam . rif , v -> tparam . rdf , v -> tparam . cdf ) ; } printf ( " \n " ) ; } }
Print the VCC table for this interface, ABR traffic parameters.
Print the VCC table for this interface ABR traffic parameters .