[vpp-dev] pcap_write error: bad address #pcap

2022-10-16 Thread aihua1980
dear all: pcap_write,use type int n; if  n is negative。  int n = vec_len (pm->pcap_data) - pm->n_pcap_data_written; write func will failed,errno = 14. n = write (pm->file_descriptor, vec_elt_at_index (pm->pcap_data, pm->n_pcap_data_written), n); int   cast   to  size_t  may case  some overflow? -=

[vpp-dev] snat support bind to specific subnets

2022-10-16 Thread lihuawei
Hi Ole, Filip, Klement, Neale, John, Steven, &Community, I have a demand about snat. With in a vpc, different subnets need use different snat ip to the internet, but the vpp snat feature now do not support snat ip bind to specific subnets. I have two ideas to resolve this: 1. modify and develop