[dpdk-dev] [PATCH v4] net/pcap: support snaplen option to truncate packet
Pattan, Reshma
reshma.pattan at intel.com
Tue Jul 14 13:46:00 CEST 2020
> -----Original Message-----
> From: wangzk320 at 163.com <wangzk320 at 163.com> On Behalf Of Zhike Wang
> + "[snaplen=<snap length>default:0, meaning no
> truncation]'\n",
>From pdump changes, below are couple of comments.
Bit more descriptive would be nice, how about, disables truncation of captured packets.?
> + if (cnt1 == 1) {
> + v.min = 1;
Min should be 0. User still can pass 0 value.
> + v.max = UINT16_MAX;
Instead of allowing big max number, isn't it good to have some restricted max value?
Thanks,
Reshma
More information about the dev
mailing list