FreeBSD/sbin/atm/atmconfig/diag.c
/*
 * Print the VCC table for this interface, traffic parameters.
 */
Print the VCC table for this interface, traffic parameters.
Print the VCC table for this interface traffic parameters .
static void
print_traffic(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);
		switch (v->traffic) {
		  case ATMIO_TRAFFIC_CBR:
			printf("%u", v->tparam.pcr);
			break;
		  case ATMIO_TRAFFIC_UBR:
			printf("%-8u                %u", v->tparam.pcr,
			    v->tparam.mcr);
			break;
		  case ATMIO_TRAFFIC_VBR:
			printf("%-8u%-8u%-8u", v->tparam.pcr, v->tparam.scr,
			    v->tparam.mbs);
			break;
		  case ATMIO_TRAFFIC_ABR:
			printf("%-8u                %-8u",
			    v->tparam.pcr, v->tparam.mcr);
			break;
		}
		printf("\n");
	}
}
static void print_traffic ( 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 ) ; switch ( v -> traffic ) { case ATMIO_TRAFFIC_CBR : printf ( " " , v -> tparam . pcr ) ; break ; case ATMIO_TRAFFIC_UBR : printf ( " " , v -> tparam . pcr , v -> tparam . mcr ) ; break ; case ATMIO_TRAFFIC_VBR : printf ( " " , v -> tparam . pcr , v -> tparam . scr , v -> tparam . mbs ) ; break ; case ATMIO_TRAFFIC_ABR : printf ( " " , v -> tparam . pcr , v -> tparam . mcr ) ; break ; } printf ( " \n " ) ; } }
Print the VCC table for this interface, traffic parameters.
Print the VCC table for this interface traffic parameters .