hi Dave: I have been gdb before, vl(pm->pcap_data) = 2,806,013,189, pm->n_pcap_data_written = 0. int is 32 bits,size_t is 64 bits. n=0xA740 5D05 cast to size_t is 0xFFFF FFFF A740 5D05. we can't use n for write param.
code fragment: int 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), n);
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#22043): https://lists.fd.io/g/vpp-dev/message/22043 Mute This Topic: https://lists.fd.io/mt/94377467/21656 Mute #pcap:https://lists.fd.io/g/vpp-dev/mutehashtag/pcap Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-