Changeset a21af3d for lib


Ignore:
Timestamp:
10/09/06 10:54:50 (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:
30d4bd3
Parents:
e0184a5
Message:

Kill dead (commented out) code

Location:
lib
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • lib/format_rt.c

    ra7d1914 ra21af3d  
    651651                }
    652652                else {
    653                         //printf("packet error\n");
    654653                        event.type = TRACE_EVENT_PACKET;
    655654                }
  • lib/pcap_dump_flush.c

    re5c2bc4 ra21af3d  
    66#ifdef HAVE_PCAP_INT_H
    77# include <pcap-int.h>
    8 #else
    9 //# error "Need pcap-int.h for declaration of pcap_t"
    108#endif
    119#include <string.h>
  • lib/pcap_next_ex.c

    re5c2bc4 ra21af3d  
    66#ifdef HAVE_PCAP_INT_H
    77# include <pcap-int.h>
    8 #else
    9 //# error "Need pcap-int.h for declaration of pcap_t"
    108#endif
    119#include <string.h>
     
    5452                return 0;
    5553
    56         //*pkt_header = pcap_data.header;
    57         //*pkt_data = pcap_data.payload;
    58 
    59        
    6054        return 1;
    6155}
  • lib/pcap_open_dead.c

    r916bba7 ra21af3d  
    1818    if (p == NULL)
    1919        return NULL;   
    20   //  memset (p, 0, sizeof(*p));
    2120    p->snapshot = snaplen;
    2221    p->linktype = linktype;
  • lib/protocols.c

    r52c7cda ra21af3d  
    126126
    127127        /* What kind of wacked out header, has this in host order?! */
    128         //if (type) *type = htons(sll->protocol);
    129 
    130128        if (type) *type = ntohs(sll->hatype);
    131129
  • lib/trace.c

    ra605bbe ra21af3d  
    717717}
    718718
    719 /*
    720 typedef struct legacy_framing {
    721         uint64_t        ts;
    722         uint32_t        crc;
    723         uint32_t        header;
    724         uint32_t        data[12]; // pad to 64 bytes
    725 } legacy_framing_t;
    726 */
    727 
    728 
    729719/* Get the current time in DAG time format
    730720 * @param packet        a pointer to a libtrace_packet structure
Note: See TracChangeset for help on using the changeset viewer.