Changeset fce4572 for lib/format_erf.c


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_erf.c

    r9a6bdbc rfce4572  
    123123        libtrace_linktype_t ltype = trace_get_link_type(packet);
    124124
     125        if (ltype == TRACE_TYPE_CONTENT_INVALID) {
     126                return false;
     127        }
    125128        if (ltype == TRACE_TYPE_PCAPNG_META
    126129                || ltype == TRACE_TYPE_NONDATA) {
Note: See TracChangeset for help on using the changeset viewer.