Lines Matching defs:pkt
446 * event handled is the finish time of the head pkt.
449 * event handled is the start time of the head pkt.
459 struct dn_pkt_tag *pkt ;
464 pkt = dn_tag_get(m);
465 if ( !DN_KEY_LEQ(pkt->output_time, curr_time) )
476 switch (pkt->dn_dir) {
478 struct route tmp_rt = pkt->ro;
479 (void)ip_output(m, NULL, NULL, pkt->flags, NULL, NULL);
499 printf("dummynet/bridge: pullup fail, dropping pkt\n");
502 m = bdg_forward_ptr(m, pkt->ifp);
504 /* somebody unloaded the bridge module. Drop pkt */
513 printf("dummynet: bad switch %d!\n", pkt->dn_dir);
521 pkt = dn_tag_get(m);
525 heap_insert(&extract_heap, pkt->output_time, pipe);
546 * extract pkt from queue, compute output time (could be now)
550 move_pkt(struct mbuf *pkt, struct dn_flow_queue *q,
553 struct dn_pkt_tag *dt = dn_tag_get(pkt);
555 q->head = pkt->m_nextpkt ;
562 p->head = pkt;
564 p->tail->m_nextpkt = pkt;
565 p->tail = pkt;
574 * if there are leftover packets reinsert the pkt in the scheduler.
579 struct mbuf *pkt;
600 while ( (pkt = q->head) != NULL ) {
601 int len = pkt->m_pkthdr.len;
606 move_pkt(pkt, q, p, len);
615 if ( (pkt = q->head) != NULL ) { /* this implies bandwidth != 0 */
616 dn_key t = SET_TICKS(pkt, q, p); /* ticks i have to wait */
669 struct mbuf *pkt = q->head;
671 u_int64_t len = pkt->m_pkthdr.len;
676 move_pkt(pkt, q, p, len);
936 * Given a flow_set and a pkt in last_pkt, find a matching queue
1157 struct dn_pkt_tag *pkt;
1202 printf("dummynet: no pipe %d for queue %d, drop pkt\n",
1211 * update statistics, then check reasons to drop pkt
1216 goto dropit ; /* random pkt drop */
1234 pkt = (struct dn_pkt_tag *)(mtag+1);
1235 bzero(pkt, sizeof(struct dn_pkt_tag));
1236 /* ok, i can handle the pkt now... */
1238 pkt->rule = fwa->rule ;
1239 pkt->dn_dir = dir ;
1241 pkt->ifp = fwa->oif;
1249 pkt->ro = *(fwa->ro);
1253 fwa->dst = (struct sockaddr_in *)&(pkt->ro.ro_dst) ;
1256 pkt->dn_dst = fwa->dst;
1257 pkt->flags = fwa->flags;
1259 pkt->ipoa = *(fwa->ipoa);
1361 * Below, the rtfree is only needed when (pkt->dn_dir == DN_TO_IP_OUT)
1495 struct dn_pkt_tag *pkt = dn_tag_get(m) ;
1496 if (pkt->rule == r)
1497 pkt->rule = ip_fw_default_rule ;
1509 struct dn_pkt_tag *pkt ;
1525 pkt = dn_tag_get(m) ;
1526 if (pkt->rule == r)
1527 pkt->rule = ip_fw_default_rule ;