- Timestamp:
- 05/19/06 13:38:02 (16 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:
- fc3dcfa
- Parents:
- 2d7da92
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_rt.c
rcd7eec7 racc80de 88 88 libtrace_t *dummy_pcap; 89 89 libtrace_t *dummy_wag; 90 libtrace_t *dummy_linux; 90 91 }; 91 92 … … 196 197 RT_INFO->dummy_pcap = NULL; 197 198 RT_INFO->dummy_wag = NULL; 199 RT_INFO->dummy_linux = NULL; 198 200 RT_INFO->pkt_buffer = NULL; 199 201 RT_INFO->buf_current = NULL; … … 264 266 if (RT_INFO->dummy_wag) 265 267 trace_destroy_dead(RT_INFO->dummy_wag); 268 269 if (RT_INFO->dummy_linux) 270 trace_destroy_dead(RT_INFO->dummy_linux); 271 266 272 close(RT_INFO->input_fd); 267 273 free(libtrace->format_data); … … 383 389 packet->trace = RT_INFO->dummy_wag; 384 390 break; 391 case RT_DATA_LINUX_NATIVE: 392 if (!RT_INFO->dummy_linux) { 393 RT_INFO->dummy_linux = trace_create_dead("int:"); 394 } 395 packet->trace = RT_INFO->dummy_linux; 396 break; 385 397 case RT_DATA_LEGACY_ETH: 386 398 case RT_DATA_LEGACY_ATM: 387 399 case RT_DATA_LEGACY_POS: 388 case RT_DATA_LINUX_NATIVE:389 400 printf("Sending legacy over RT is currently not supported\n"); 390 401 trace_set_err(libtrace, TRACE_ERR_BAD_PACKET, "Legacy packet cannot be sent over rt");
Note: See TracChangeset
for help on using the changeset viewer.