Changeset eeab9832 for lib/format_pcap.c


Ignore:
Timestamp:
03/03/06 18:24:18 (15 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
7ac9705
Parents:
c3e6e47
Message:

more error handling support
dag card work-around
removed annoying issue with mallocing memory during constructor that we

never free'd

added the ability to catch finalised packets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    r6c248a9 reeab9832  
    314314}
    315315
    316 static libtrace_linktype_t pcap_get_link_type(const struct libtrace_packet_t *packet) {
     316static libtrace_linktype_t pcap_get_link_type(const libtrace_packet_t *packet) {
    317317        struct pcap_pkthdr *pcapptr = 0;
    318318        int linktype = 0;
     
    462462        pcap_fin_output,                /* fin_output */
    463463        pcap_read_packet,               /* read_packet */
     464        NULL,                           /* fin_packet */
    464465        pcap_write_packet,              /* write_packet */
    465466        pcap_get_link_type,             /* get_link_type */
     
    478479        NULL,                           /* get_fd */
    479480        trace_event_trace,              /* trace_event */
    480         pcap_help                       /* help */
     481        pcap_help,                      /* help */
     482        NULL                            /* next pointer */
    481483};
    482484
     
    495497        NULL,                           /* fin_output */
    496498        pcap_read_packet,               /* read_packet */
     499        NULL,                           /* fin_packet */
    497500        NULL,                           /* write_packet */
    498501        pcap_get_link_type,             /* get_link_type */
     
    511514        pcap_get_fd,                    /* get_fd */
    512515        trace_event_device,             /* trace_event */
    513         pcapint_help                    /* help */
     516        pcapint_help,                   /* help */
     517        NULL                            /* next pointer */
    514518};
    515519
Note: See TracChangeset for help on using the changeset viewer.