Changeset 85a79b0 for lib/protocols.c


Ignore:
Timestamp:
08/25/06 15:47:43 (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:
e283596
Parents:
e373992
Message:

Fixed lots of warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols.c

    rc0fdf31 r85a79b0  
    640640                        struct sockaddr_in *addr4=(struct sockaddr_in*)addr;
    641641                        libtrace_ip_t *ip = (libtrace_ip_t*)l3;
    642                         ports = trace_get_payload_from_ip(ip,NULL,&remaining);
     642                        ports = (struct ports_t*)
     643                                trace_get_payload_from_ip(ip,NULL,&remaining);
    643644                        addr4->sin_family=AF_INET;
    644645                        if (ports && remaining>=sizeof(*ports))
     
    653654                        struct sockaddr_in6 *addr6=(struct sockaddr_in6*)addr;
    654655                        libtrace_ip6_t *ip6 = (libtrace_ip6_t*)l3;
    655                         ports = trace_get_payload_from_ip6(ip6,NULL,&remaining);
     656                        ports = (struct ports_t*)
     657                                trace_get_payload_from_ip6(ip6,NULL,&remaining);
    656658                        addr6->sin6_family=AF_INET6;
    657659                        if (ports && remaining>=sizeof(*ports))
Note: See TracChangeset for help on using the changeset viewer.