Ignore:
Timestamp:
01/08/19 10:58:31 (22 months ago)
Author:
Shane Alcock <salcock@…>
Branches:
develop
Children:
0ae7ba2
Parents:
93564ff
Message:

Add more failure cases to "can_write" functions for some formats.

Specifically:

  • Avoid writing metadata packets to DPDK, ring and int
  • Make sure all formats avoid writing "content invalid" packets.
  • Add comments to remind us that erf meta <-> pcapng meta conversion might be worth adding at some point.
  • Add comment to remind us that erf meta should be writable via a DAG card (I think).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_linux_int.c

    r9a6bdbc rfce4572  
    6161
    6262        if (ltype == TRACE_TYPE_NONDATA) {
     63                return false;
     64        }
     65        if (ltype == TRACE_TYPE_CONTENT_INVALID) {
     66                return false;
     67        }
     68        if (ltype == TRACE_TYPE_PCAPNG_META) {
     69                return false;
     70        }
     71        if (ltype == TRACE_TYPE_ERF_META) {
    6372                return false;
    6473        }
Note: See TracChangeset for help on using the changeset viewer.