Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    rb13b939 ra6c77b0  
    578578static libtrace_direction_t pcap_set_direction(libtrace_packet_t *packet,
    579579                libtrace_direction_t dir) {
    580        
     580
     581        /* We only support tagging with IN or OUT return error for any others */
     582        if(!(dir == TRACE_DIR_OUTGOING || dir == TRACE_DIR_INCOMING))
     583                return -1;
     584
    581585        /* PCAP doesn't have a direction field in the header, so we need to
    582586         * promote to Linux SLL to tag it properly */
     
    801805        trace_event_trace,              /* trace_event */
    802806        pcap_help,                      /* help */
    803         NULL,                   /* next pointer */
    804         NON_PARALLEL(false)
     807        NULL                            /* next pointer */
    805808};
    806809
     
    845848        trace_event_device,             /* trace_event */
    846849        pcapint_help,                   /* help */
    847         NULL,                   /* next pointer */
    848         NON_PARALLEL(true)
     850        NULL                            /* next pointer */
    849851};
    850852
Note: See TracChangeset for help on using the changeset viewer.