Lines Matching defs:mtag
187 * Also extract packet's timestamp from mtag.
192 struct m_tag *mtag;
207 mtag = m_tag_locate(m, MTAG_ABI_COMPAT, DN_AQM_MTAG_TS, NULL);
208 if (mtag == NULL) {
209 D("Codel timestamp mtag not found!");
212 *pkt_ts = *(aqm_time_t *)(mtag + 1);
213 m_tag_delete(m,mtag);
233 struct m_tag *mtag;
258 /* Add timestamp as mtag */
259 mtag = m_tag_locate(m, MTAG_ABI_COMPAT, DN_AQM_MTAG_TS, NULL);
260 if (mtag == NULL)
261 mtag = m_tag_alloc(MTAG_ABI_COMPAT, DN_AQM_MTAG_TS,
263 if (mtag == NULL)
266 *(aqm_time_t *)(mtag + 1) = AQM_UNOW;
267 m_tag_prepend(m, mtag);