summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Ribas <jonathan.ribas@fraudbuster.mobi>2018-12-13 16:26:27 +0100
committerJonathan Ribas <jonathan.ribas@fraudbuster.mobi>2018-12-13 16:26:27 +0100
commitd9a97c2f6e0409700c3377d1a85f668af51710f4 (patch)
tree411c70ba39631000ee52cd81bf01d100f71fdd14
parent87a8ae890f20631e129421f351ff33c5ebb2731f (diff)
downloaddpdk-burst-replay-d9a97c2f6e0409700c3377d1a85f668af51710f4.zip
dpdk-burst-replay-d9a97c2f6e0409700c3377d1a85f668af51710f4.tar.gz
dpdk-burst-replay-d9a97c2f6e0409700c3377d1a85f668af51710f4.tar.xz
Did not exit anymore when the pcap file is truncated.
-rw-r--r--src/pcap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/pcap.c b/src/pcap.c
index 28b9830..8a412bd 100644
--- a/src/pcap.c
+++ b/src/pcap.c
@@ -144,7 +144,6 @@ int preload_pcap(const struct cmd_opts* opts, struct pcap_ctx* pcap)
} else if (nb_read != sizeof(pcap_rechdr)) {
printf("\nread pkt hdr misssize: %lu / %lu\n",
nb_read, sizeof(pcap_rechdr));
- ret = EIO;
goto preload_pcapError;
}
total_read += nb_read;
@@ -168,7 +167,6 @@ int preload_pcap(const struct cmd_opts* opts, struct pcap_ctx* pcap)
} else if (nb_read != pcap_rechdr.incl_len) {
printf("\nread pkt %i payload misssize: %u / %u\n", cpt,
(unsigned int)nb_read, pcap_rechdr.incl_len);
- ret = EIO;
goto preload_pcapError;
}
total_read += nb_read;