Commit 7c874741 authored by Pramod R Sanaga's avatar Pramod R Sanaga
Browse files

TCP over UDP works ass a stand alone flow and along with itself as the

competing traffic - stemmed the packet losses in rcv buffers. Completely(& unfairly) dominates a competing IPerf TCP flow though.
parent 89a56729
......@@ -154,7 +154,7 @@ void pcapCallback(u_char *user, const struct pcap_pkthdr *pcap_info, const u_cha
void init_pcap( char *ipAddress)
char interface[] = "eth2";
char interface[] = "eth4";
struct bpf_program bpfProg;
char errBuf[PCAP_ERRBUF_SIZE];
char filter[128] = " udp ";
......@@ -473,7 +473,7 @@ void handleUDP(struct pcap_pkthdr const *pcap_info, struct udphdr const *udpHdr,
destAddr.sin_port = udpHdr->source;
int retval = sendto(sd,appAck,packetSize,flags,(struct sockaddr *)&destAddr,sizeof(destAddr));
if(retval < 0)
if(retval <= 0)
cout<<"Send failed for ACK "<<ackedSeq<<endl;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment