<pre>Hello,<br> After receing packets using pcap_next_ex(), i am trying to add delay to certain packets.<br> I am doing so, by adding the amount of delay (x secs) to the timestamp in the header. Then i use pcap_sendqueue to queue the packet and then pcap_sendueue_transmit to transmit it with sync set to TRUE.<br> <br> But i observe that the packet is sent immediately without delay..<br> I even increased the timestamp value by 10 seconds, but still the transmit function ended up sending the packet immediately..<br> <br> // code to update the timestamp <br> ...<br> ...<br>// sending<br> pQueue = pcap_sendqueue_alloc(10000);<br> if(pcap_sendqueue_queue(pQueue,header,pkt_data) == -1)<br> {<br> printf("Warning: Packet Buffer very small, not all packets will be sent\n");<br> return;<br> }<br> if((res = pcap_sendqueue_transmit(pAdapter_Write,pQueue, TRUE)) < pQueue->len)<br> {<br> printf("An error occurred
sending the packets: %s. Only %d bytes were sent\n", error, res);<br> }<br> printf("\nQueue len=%d\n",pQueue->len);<br> pcap_sendqueue_destroy(pQueue);<br> <br> Any input on this will be useful.<br> Thank you very much.</pre> <p> 
                <hr size=1>Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. <a href="http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com"> Great rates starting at 1¢/min.