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> 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.<br> Vruti<br> <p> 
                <hr size=1>Do you Yahoo!?<br> Everyone is raving about the <a href="http://us.rd.yahoo.com/evt=40791/*http://advision.webevents.yahoo.com/handraisers"> all-new Yahoo! Mail Beta.</a>