Lines Matching refs:mtag
189 * Also extract packet's timestamp from mtag.
194 struct m_tag *mtag;
208 mtag = m_tag_locate(m, MTAG_ABI_COMPAT, DN_AQM_MTAG_TS, NULL);
209 if (mtag == NULL) {
210 D("Codel timestamp mtag not found!");
213 *pkt_ts = *(aqm_time_t *)(mtag + 1);
214 m_tag_delete(m,mtag);
229 struct m_tag *mtag;
254 /* Add timestamp as mtag */
255 mtag = m_tag_locate(m, MTAG_ABI_COMPAT, DN_AQM_MTAG_TS, NULL);
256 if (mtag == NULL)
257 mtag = m_tag_alloc(MTAG_ABI_COMPAT, DN_AQM_MTAG_TS,
259 if (mtag == NULL)
262 *(aqm_time_t *)(mtag + 1) = AQM_UNOW;
263 m_tag_prepend(m, mtag);