On Tue, Mar 10, 2026 at 09:09:58AM -0700, Stephen Hemminger wrote: > Add a new devarg 'snaplen' to configure the pcap snapshot length, > which controls the maximum packet size for capture and output. > > The snapshot length affects: > - The pcap_set_snaplen() call when capturing from interfaces > - The pcap_open_dead() snapshot parameter for output files > - The reported max_rx_pktlen in device info > - The reported max_mtu in device info (snaplen - ethernet header) > > The default value is 65535 bytes, preserving backward compatibility > with previous driver behavior. > > The snaplen argument is parsed before interface and file arguments > so that its value is available when pcap handles are opened during > device creation. > > Example usage: > --vdev 'net_pcap0,snaplen=1518,iface=eth0' > --vdev 'net_pcap0,snaplen=9000,rx_pcap=in.pcap,tx_pcap=out.pcap' > > Signed-off-by: Stephen Hemminger <[email protected]> > --- Acked-by: Bruce Richardson <[email protected]>
- [PATCH v20 16/25] net/pcap: reduce scope of file-level v... Stephen Hemminger
- Re: [PATCH v20 16/25] net/pcap: reduce scope of fil... Bruce Richardson
- [PATCH v20 19/25] eal/windows: add wrapper for access fu... Stephen Hemminger
- Re: [PATCH v20 19/25] eal/windows: add wrapper for ... Bruce Richardson
- [PATCH v20 18/25] net/pcap: clarify maximum received pac... Stephen Hemminger
- Re: [PATCH v20 18/25] net/pcap: clarify maximum rec... Bruce Richardson
- [PATCH v20 17/25] net/pcap: avoid use of volatile Stephen Hemminger
- Re: [PATCH v20 17/25] net/pcap: avoid use of volati... Bruce Richardson
- Re: [PATCH v20 17/25] net/pcap: avoid use of vo... Stephen Hemminger
- [PATCH v20 20/25] net/pcap: add snapshot length devarg Stephen Hemminger
- Re: [PATCH v20 20/25] net/pcap: add snapshot length... Bruce Richardson
- [PATCH v20 21/25] net/pcap: add Rx scatter offload Stephen Hemminger
- Re: [PATCH v20 21/25] net/pcap: add Rx scatter offl... Bruce Richardson
- [PATCH v20 22/25] net/pcap: add link status change suppo... Stephen Hemminger
- Re: [PATCH v20 22/25] net/pcap: add link status cha... Bruce Richardson
- [PATCH v20 23/25] net/pcap: add EOF notification via lin... Stephen Hemminger
- Re: [PATCH v20 23/25] net/pcap: add EOF notificatio... Bruce Richardson
- [PATCH v20 25/25] app/pdump: preserve VLAN tags in captu... Stephen Hemminger
- Re: [PATCH v20 25/25] app/pdump: preserve VLAN tags... Bruce Richardson
- RE: [PATCH v20 25/25] app/pdump: preserve VLAN ... Morten Brørup
- Re: [PATCH v20 25/25] app/pdump: preserve V... Bruce Richardson

