Home | History | Annotate | Download | only in pppoatm

Lines Matching refs:qos

1 /* text2qos.c - Converts textual representation of QOS parameters to binary
125 int text2qos(const char *text,struct atm_qos *qos,int flags)
153 if (qos && !(flags & T2Q_DEFAULTS)) memset(qos,0,sizeof(*qos));
154 if (qos) qos->txtp.traffic_class = qos->rxtp.traffic_class = traffic_class;
155 if (qos && aal) qos->aal = aal;
157 if (params(&text,qos ? &qos->txtp : NULL,qos ? &qos->rxtp : NULL))
163 if (qos) qos->txtp.traffic_class = ATM_NONE;
167 if (params(&text,qos ? &qos->txtp : NULL,NULL)) return -1;
177 if (!fetch(&text,":none",NULL) && qos) qos->rxtp.traffic_class = ATM_NONE;
178 else if (params(&text,qos ? &qos->rxtp : NULL,NULL)) return -1;