Ignore:
Timestamp:
11/27/08 17:49:18 (13 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:
7157db8
Parents:
db161c0
Message:

More IPPROTOification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols_transport.c

    rdb161c0 rc5a35e6  
    6262        libtrace_tcp_t *tcpptr = 0;
    6363
    64         if (ip->ip_p == 6)  {
     64        if (ip->ip_p == TRACE_IPPROTO_TCP)  {
    6565                tcpptr = (libtrace_tcp_t *)
    6666                        trace_get_payload_from_ip(ip, NULL, remaining);
     
    7676        udp=(libtrace_udp_t*)trace_get_transport(packet,&proto,NULL);
    7777
    78         if (!udp || proto != 17)
     78        if (!udp || proto != TRACE_IPPROTO_UDP)
    7979                return NULL;
    8080
Note: See TracChangeset for help on using the changeset viewer.