Changeset 97e39a7
- Timestamp:
- 04/14/06 14:13:07 (15 years ago)
- 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:
- 566e404
- Parents:
- 6b0560b
- Location:
- lib
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/Makefile.am
r4af54d1 r97e39a7 5 5 libtrace_la_SOURCES = trace.c fifo.c fifo.h common.h \ 6 6 format_erf.c format_pcap.c format_wag.c format_legacy.c format_rt.c\ 7 format_helper.c format_helper.h \7 format_helper.c format_helper.h format_linux.c \ 8 8 parse_cmd.c parse_cmd.h libtrace_int.h lt_inttypes.h \ 9 9 linktypes.c protocols.c -
lib/format_pcap.c
r33e1501 r97e39a7 326 326 */ 327 327 linktype = rt_to_pcap_dlt(packet->type); 328 /*329 if (packet->trace->format_data == NULL)330 linktype = rt_to_pcap_dlt(packet->type);331 else332 linktype = pcap_datalink(DATA(packet->trace)->input.pcap);333 */334 328 return pcap_dlt_to_libtrace(linktype); 335 329 } -
lib/libtrace.h
r95459ed5 r97e39a7 1190 1190 TRACE_FORMAT_LEGACY_ATM =5, 1191 1191 TRACE_FORMAT_LEGACY_POS =6, 1192 TRACE_FORMAT_LEGACY_ETH =7 1192 TRACE_FORMAT_LEGACY_ETH =7, 1193 TRACE_FORMAT_LINUX_NATIVE =8 1193 1194 }; 1194 1195 -
lib/libtrace_int.h
r9e830d4 r97e39a7 208 208 * if this function is not supported, this field may be NULL. 209 209 */ 210 int (*read_packet)(libtrace_t *libtrace, structlibtrace_packet_t *packet);210 int (*read_packet)(libtrace_t *libtrace, libtrace_packet_t *packet); 211 211 /** finalise a packet 212 212 * cleanup any resources used by a packet that can't be reused for -
lib/linktypes.c
r751531a r97e39a7 1 1 #include "libtrace.h" 2 #include "config.h" 2 3 #ifdef HAVE_PCAP 3 4 #include <pcap.h> … … 28 29 case DLT_PFLOG: return TRACE_TYPE_PFLOG; 29 30 #endif 31 #else 32 default: 33 assert(!"No pcap support"); 30 34 #endif 31 35 } -
lib/protocols.c
rd8fc342 r97e39a7 185 185 return trace_get_payload_from_atm(link,type,remaining); 186 186 } 187 fprintf(stderr,"Don't understand link layer type %i in trace_get_ ip6()\n",187 fprintf(stderr,"Don't understand link layer type %i in trace_get_payload_from_link()\n", 188 188 linktype); 189 189 return NULL;
Note: See TracChangeset
for help on using the changeset viewer.