Ignore:
Timestamp:
08/18/06 17:51:32 (15 years ago)
Author:
Perry Lorier <perry@…>
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:
b3a76bf
Parents:
7ecfe7f
Message:

New automake infrastructure
Moved a lot of C++ libpacketdump parsers to C (they weren't using any C++ features and it makes automake happier)

File:
1 moved

Legend:

Unmodified
Added
Removed
  • libpacketdump/ip_6.c

    r4e65f42 r0a22046  
    4646}
    4747
    48 extern "C"
    4948void decode(int link_type,char *packet,int len)
    5049{
     
    9796        DISPLAYS(urg_ptr," Urgent %i");
    9897        unsigned char *pkt = (unsigned char*)packet+sizeof(*tcp);
    99         int plen = (len-sizeof *tcp) <? (tcp->doff*4-sizeof *tcp);
     98        int plen = (len-sizeof *tcp) < (tcp->doff*4-sizeof(*tcp))?(len-sizeof(*tcp)):(tcp->doff*4-sizeof *tcp);
    10099        unsigned char type,optlen,*data;
    101100        while(get_next_option(&pkt,&plen,&type,&optlen,&data)) {
Note: See TracChangeset for help on using the changeset viewer.