Changeset 4746c71
- Timestamp:
- 12/31/06 17:49:49 (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:
- 8d504c1
- Parents:
- e1868fb
- Location:
- lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_pcapfile.c
r4bd8a5b r4746c71 353 353 { 354 354 libtrace_sll_header_t *sll; 355 sll = trace_get_link(packet);355 sll = (libtrace_sll_header_t*)trace_get_link(packet); 356 356 if (!sll) { 357 357 trace_set_err(packet->trace, … … 382 382 { 383 383 libtrace_pflog_header_t *pflog; 384 pflog =trace_get_link(packet);384 pflog=(libtrace_pflog_header_t*)trace_get_link(packet); 385 385 if (!pflog) { 386 386 trace_set_err(packet->trace, -
lib/format_rt.c
r4bd8a5b r4746c71 53 53 #define RT_INFO ((struct rt_format_data_t*)libtrace->format_data) 54 54 55 static c har *rt_deny_reason(enum rt_conn_denied_t reason)55 static const char *rt_deny_reason(enum rt_conn_denied_t reason) 56 56 { 57 c har *string = 0;57 const char *string = 0; 58 58 59 59 switch(reason) { … … 294 294 295 295 if (!RT_INFO->pkt_buffer) { 296 RT_INFO->pkt_buffer = malloc((size_t)RT_BUF_SIZE);296 RT_INFO->pkt_buffer = (char*)malloc((size_t)RT_BUF_SIZE); 297 297 RT_INFO->buf_current = RT_INFO->pkt_buffer; 298 298 RT_INFO->buf_filled = 0; … … 448 448 449 449 if (!ack_buffer) { 450 ack_buffer = malloc(sizeof(rt_header_t) + sizeof(rt_ack_t)); 450 ack_buffer = (char*)malloc(sizeof(rt_header_t) 451 + sizeof(rt_ack_t)); 451 452 } 452 453 -
lib/format_wag.c
r4bd8a5b r4746c71 292 292 assert(framesize<=len); 293 293 294 buf_ptr = ( void*)((char*)buffer + sizeof (struct frame_t));294 buf_ptr = ((char*)buffer + sizeof (struct frame_t)); 295 295 to_read = framesize - sizeof(struct frame_t); 296 296 -
lib/libtrace_int.h
re1868fb r4746c71 196 196 struct libtrace_format_t { 197 197 /** the uri name of this module */ 198 c har *name;198 const char *name; 199 199 /** the version of this module */ 200 c har *version;200 const char *version; 201 201 /** the RT protocol type of this module */ 202 202 enum base_format_t type; -
lib/linktypes.c
r4bd8a5b r4746c71 246 246 packet->payload,NULL,&remaining); 247 247 248 tmp= malloc(248 tmp=(char*)malloc( 249 249 trace_get_capture_length(packet) 250 250 +sizeof(libtrace_pcapfile_pkt_hdr_t) … … 285 285 packet->payload,&type,&remaining); 286 286 287 tmp= malloc(287 tmp=(char*)malloc( 288 288 trace_get_capture_length(packet) 289 289 +sizeof(libtrace_pcapfile_pkt_hdr_t)
Note: See TracChangeset
for help on using the changeset viewer.