summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoraihua2013 <51931196@qq.com>2022-10-21 02:32:08 +0000
committerDave Wallace <dwallacelf@gmail.com>2023-01-18 00:42:25 +0000
commit936b8ddcf7a00fe5b8863e10f4e4c8077975e94c (patch)
tree01b51c970824ff1d16626d04e5495cca8f45961a /src
parent738cf73b2c5e396a56b8fab19b64a07b171cb14c (diff)
vppinfra:fix pcap write large file(> 0x80000000) error.
Type: improvement Signed-off-by: aihua2013 <51931196@qq.com> Change-Id: I22670f49abfb5d1fd728686fc7d65fb40ea6bda2
Diffstat (limited to 'src')
-rw-r--r--src/vppinfra/pcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/pcap.c b/src/vppinfra/pcap.c
index 23bb463835b..bdaa861db3f 100644
--- a/src/vppinfra/pcap.c
+++ b/src/vppinfra/pcap.c
@@ -137,7 +137,7 @@ pcap_write (pcap_main_t * pm)
while (vec_len (pm->pcap_data) > pm->n_pcap_data_written)
{
- int n = vec_len (pm->pcap_data) - pm->n_pcap_data_written;
+ i64 n = vec_len (pm->pcap_data) - pm->n_pcap_data_written;
n = write (pm->file_descriptor,
vec_elt_at_index (pm->pcap_data, pm->n_pcap_data_written),