From 936b8ddcf7a00fe5b8863e10f4e4c8077975e94c Mon Sep 17 00:00:00 2001 From: aihua2013 <51931196@qq.com> Date: Fri, 21 Oct 2022 02:32:08 +0000 Subject: vppinfra:fix pcap write large file(> 0x80000000) error. Type: improvement Signed-off-by: aihua2013 <51931196@qq.com> Change-Id: I22670f49abfb5d1fd728686fc7d65fb40ea6bda2 --- src/vppinfra/pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vppinfra') 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), -- cgit 1.2.3-korg