Changeset acc80de


Ignore:
Timestamp:
05/19/06 13:38:02 (14 years ago)
Author:
Shane Alcock <salcock@…>
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
Message:

RT now supports linux native socket packets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_rt.c

    rcd7eec7 racc80de  
    8888        libtrace_t *dummy_pcap;
    8989        libtrace_t *dummy_wag;
     90        libtrace_t *dummy_linux;
    9091};
    9192
     
    196197        RT_INFO->dummy_pcap = NULL;
    197198        RT_INFO->dummy_wag = NULL;
     199        RT_INFO->dummy_linux = NULL;
    198200        RT_INFO->pkt_buffer = NULL;
    199201        RT_INFO->buf_current = NULL;
     
    264266        if (RT_INFO->dummy_wag)
    265267                trace_destroy_dead(RT_INFO->dummy_wag);
     268
     269        if (RT_INFO->dummy_linux)
     270                trace_destroy_dead(RT_INFO->dummy_linux);
     271
    266272        close(RT_INFO->input_fd);
    267273        free(libtrace->format_data);
     
    383389                        packet->trace = RT_INFO->dummy_wag;
    384390                        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;
    385397                case RT_DATA_LEGACY_ETH:
    386398                case RT_DATA_LEGACY_ATM:
    387399                case RT_DATA_LEGACY_POS:
    388                 case RT_DATA_LINUX_NATIVE:
    389400                        printf("Sending legacy over RT is currently not supported\n");
    390401                        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.