Changeset 9a6bdbc for lib/format_dpdk.c


Ignore:
Timestamp:
01/07/19 10:35:07 (22 months ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
51276bd
Parents:
979ab1a0
git-author:
Jacob Van Walraven <jcv9@…> (12/14/18 09:31:48)
git-committer:
Jacob Van Walraven <jcv9@…> (01/07/19 10:35:07)
Message:

Added can_write functions to each output format, Fixed pcapng_get_header_type incorrectly flipping type bytes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_dpdk.c

    r10fd24b r9a6bdbc  
    144144        uint32_t cap_len; /* The size to say the capture is */
    145145};
     146
     147static bool dpdk_can_write(libtrace_packet_t *packet) {
     148        return true;
     149}
    146150
    147151/**
     
    15571561static int dpdk_write_packet(libtrace_out_t *trace,
    15581562                             libtrace_packet_t *packet){
     1563
     1564        /* Check dpdk can write this type of packet */
     1565        if (!dpdk_can_write(packet)) {
     1566                return 0;
     1567        }
     1568
    15591569        struct rte_mbuf* m_buff[1];
    15601570
Note: See TracChangeset for help on using the changeset viewer.