Changeset 63f4967


Ignore:
Timestamp:
05/23/06 14:56:48 (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:
d8d1ff7
Parents:
1b95fd0
Message:

Cover destination protocol too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols.c

    r1b95fd0 r63f4967  
    520520DLLEXPORT uint16_t trace_get_destination_port(const libtrace_packet_t *packet)
    521521{
     522        uint32_t remaining;
    522523        struct ports_t *port =
    523524                (struct ports_t*)trace_get_transport((libtrace_packet_t*)packet,
    524                         NULL, NULL);
     525                        NULL, &remaining);
     526        /* snapped to early */
     527        if (remaining<4)
     528                return 0;
    525529
    526530        if (port)
Note: See TracChangeset for help on using the changeset viewer.