- {
- struct timeval tod;
- do_gettimeofday(&tod);
- if ((tod.tv_usec & 0xfff) < drop_threshold) // COP_SEND_DROP_THRESH)
- {
- cop_hdr_t *cph;
- cph = (cop_hdr_t *)skb->h.th;
- printk("DROP: seq = %d ack = %d \n", cph->seq, cph->ack);
- if (cpo)
- cpo->txdrops += 1;
- kfree_skb(skb);
- return(0);
- }
- }
Raw Paste