Changeset 9cc1266 for lib/protocols_l2.c


Ignore:
Timestamp:
02/22/11 10:01:08 (11 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:
e4e94c38
Parents:
ae76c14
Message:
  • Fixed poor performance of the event API by greatly reducing the amount of packets created, copied and freed
  • We now cache the transport header and payload length for each packet
  • We now deal with Linux SLL Ethernet captures taken using tcpdump with -i any correctly.
  • Changed parameters for internal function trace_get_payload_from_sll - it now sets both the arphrd type and the next protocol
  • Moved ARPHRD definitions into a separate header file, as they come in handy anywhere we deal with SLL headers
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols_l2.c

    r1326d5f r9cc1266  
    3737#include <assert.h>
    3838#include <stdlib.h>
     39
    3940
    4041/* This file contains all the protocol decoding functions for layer 2
     
    398399{
    399400        void *l;
     401
    400402        if (linktype == ~0U) {
    401403                fprintf(stderr, "Unable to determine linktype for packet\n");
Note: See TracChangeset for help on using the changeset viewer.