PC_KEEP#

code: 222

# set
<module-index>/<port-index> PC_KEEP <type> <index> <byte_count>

# get
<module-index>/<port-index> PC_KEEP ?

Description#

Which packets to keep once the start criteria has been triggered for a port. Also how big a portion of each packet to retain, saving space for more packets in the capture buffer.

Actions#

set, get

Parameters#

  1. type: byte, which general types of packets to keep

  • ALL = 0

  • FCSERR = 1

  • NOTPLD = 2

  • TPLD = 3

  • FILTER = 4

  • PLDERR = 5

  1. index: integer, test payload id or filter index for which packets to keep

  2. byte_count: integer, how many bytes to keep in the buffer for of each packet. The value -1 means no limit on packet size.

Example#

# set
input:  0/1 PC_KEEP ALL 1 1
output: <OK>

# get
input:  0/1 PC_KEEP ?
output: 0/1 PC_KEEP ALL 1 1