Changeset 7a529a9


Ignore:
Timestamp:
08/09/13 15:16:18 (8 years ago)
Author:
Shane Alcock <salcock@…>
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:
8780774
Parents:
3799f51
Message:
  • Fixed bug where set_capture_length was changing the wire length rather than the capture length for ring:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_linux.c

    r5ea8d25 r7a529a9  
    12381238                case PACKET_LOOPBACK:
    12391239                        return TRACE_DIR_OUTGOING;
     1240                case PACKET_OTHERHOST:
     1241                        return TRACE_DIR_OTHER;
    12401242                default:
    12411243                        return TRACE_DIR_INCOMING;
     
    12571259                        skadr->sll_pkttype = PACKET_HOST;
    12581260                        return TRACE_DIR_INCOMING;
     1261                case TRACE_DIR_OTHER:
     1262                        skadr->sll_pkttype = PACKET_OTHERHOST;
     1263                        return TRACE_DIR_OTHER;
    12591264                default:
    12601265                        return -1;
     
    14021407        packet->capture_length = -1;
    14031408
    1404         TO_TP_HDR(packet->buffer)->tp_len = size;
     1409        TO_TP_HDR(packet->buffer)->tp_snaplen = size;
    14051410
    14061411        return trace_get_capture_length(packet);
Note: See TracChangeset for help on using the changeset viewer.