Changeset 743


Ignore:
Timestamp:
04/26/06 16:06:08 (7 years ago)
Author:
spa1
Message:

Fixed the Makefile to include libtraceio.h when doing a 'make dist'
Multiple rt clients no longer share the same reliability variable

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Makefile.am

    r724 r743  
    11lib_LTLIBRARIES = libtrace.la 
    2 include_HEADERS = libtrace.h dagformat.h wag.h lt_inttypes.h daglegacy.h rt_protocol.h 
     2include_HEADERS = libtrace.h dagformat.h wag.h lt_inttypes.h daglegacy.h rt_protocol.h libtraceio.h 
    33 
    44extra_DIST = format_template.c 
     
    77                format_rt.c format_helper.c format_helper.h format_pcapfile.c \ 
    88                parse_cmd.c parse_cmd.h libtrace_int.h lt_inttypes.h \ 
    9                 linktypes.c protocols.c  
     9                linktypes.c protocols.c libtraceio.h  
    1010if HAVE_NETPACKET_PACKET_H 
    1111libtrace_la_SOURCES+=format_linux.c 
  • trunk/lib/format_rt.c

    r735 r743  
    5353 
    5454#define RT_INFO ((struct rt_format_data_t*)libtrace->format_data) 
    55  
    56 int reliability = 0; 
    5755 
    5856char *rt_deny_reason(uint8_t reason) { 
     
    174172                                return -1; 
    175173                        } 
    176                         reliability = hello_opts.reliable; 
     174                        RT_INFO->reliable = hello_opts.reliable; 
    177175                         
    178176                        return 0; 
     
    489487                rt_set_payload(packet); 
    490488 
    491                 if (reliability > 0) { 
    492                          
     489                if (RT_INFO->reliable > 0) { 
    493490                        if (rt_send_ack(libtrace, pkt_hdr->sequence)  
    494491                                        == -1) 
Note: See TracChangeset for help on using the changeset viewer.