tswtcm
struct tswtcm *tsw = (struct tswtcm *)cb;
struct tswtcm *tsw;
static struct tswtcm *tswtcm_create(struct top_cdnr *,
struct tswtcm *tsw;
if ((tsw = (struct tswtcm *)cdnr_handle2cb(ap->cdnr_handle)) == NULL)
static int tswtcm_destroy(struct tswtcm *);
struct tswtcm *tsw;
tsw = (struct tswtcm *)cb;
size = sizeof(struct tswtcm);
error = tswtcm_destroy((struct tswtcm *)cb);
static struct tswtcm *
struct tswtcm *tsw;
tswtcm_destroy(struct tswtcm *tsw)
struct tswtcm *tsw = (struct tswtcm *)cb;
cdnrinfo->tce_un.tswtcm.cmtd_rate = cmtd_rate;
cdnrinfo->tce_un.tswtcm.peak_rate = peak_rate;
cdnrinfo->tce_un.tswtcm.avg_interval = avg_interval;
cdnrinfo->tce_un.tswtcm.green_action = *green_action;
cdnrinfo->tce_un.tswtcm.yellow_action = *yellow_action;
cdnrinfo->tce_un.tswtcm.red_action = *red_action;
cdnrinfo->tce_un.tswtcm.cmtd_rate = cmtd_rate;
cdnrinfo->tce_un.tswtcm.peak_rate = peak_rate;
cdnrinfo->tce_un.tswtcm.avg_interval = avg_interval;
tswtcm_add.cmtd_rate = cdnrinfo->tce_un.tswtcm.cmtd_rate;
tswtcm_add.peak_rate = cdnrinfo->tce_un.tswtcm.peak_rate;
tswtcm_add.avg_interval = cdnrinfo->tce_un.tswtcm.avg_interval;
tswtcm_add.green_action = cdnrinfo->tce_un.tswtcm.green_action;
tswtcm_add.yellow_action = cdnrinfo->tce_un.tswtcm.yellow_action;
tswtcm_add.red_action = cdnrinfo->tce_un.tswtcm.red_action;
tswtcm_modify.cmtd_rate = cdnrinfo->tce_un.tswtcm.cmtd_rate;
tswtcm_modify.peak_rate = cdnrinfo->tce_un.tswtcm.peak_rate;
tswtcm_modify.avg_interval = cdnrinfo->tce_un.tswtcm.avg_interval;
} tswtcm;