Ticket #183: mtu.patch
| File mtu.patch, 0.8 KB (added by noel, 18 months ago) |
|---|
-
tcpreplay-2.99+3.0.beta11/src/tcprewrite.c
200 200 struct pcap_pkthdr *pkthdr = NULL; /* packet header */ 201 201 const u_char *pktdata = NULL; /* packet from libpcap */ 202 202 COUNTER packetnum = 0; 203 int ret; 203 204 204 205 /* MAIN LOOP 205 206 * Keep sending while we have packets or until … … 228 229 if (cache_result == CACHE_NOSEND) 229 230 goto WRITE_PACKET; /* still need to write it so cache stays in sync */ 230 231 231 if ( tcpedit_packet(tcpedit, &pkthdr, (u_char**)&pktdata, cache_result) == -1) {232 if ((ret = tcpedit_packet(tcpedit, &pkthdr, (u_char**)&pktdata, cache_result)) == -1) { 232 233 return -1; 234 } else if (ret == 0) { 235 continue; 233 236 } 234 237 235 238
