Changeset a48d246


Ignore:
Timestamp:
11/11/04 12:30:19 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
c8a66cb
Parents:
80a2e99
Message:

truncation issue fixed

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • config.h

    r533d7c1 ra48d246  
    7575
    7676/* Define to the full name and version of this package. */
    77 #define PACKAGE_STRING "libtrace 2.0.7"
     77#define PACKAGE_STRING "libtrace 2.0.8"
    7878
    7979/* Define to the one symbol short name of this package. */
     
    8181
    8282/* Define to the version of this package. */
    83 #define PACKAGE_VERSION "2.0.7"
     83#define PACKAGE_VERSION "2.0.8"
    8484
    8585/* Define to 1 if you have the ANSI C header files. */
     
    9090
    9191/* Version number of package */
    92 #define VERSION "2.0.7"
     92#define VERSION "2.0.8"
    9393
    9494/* Define to 1 if your processor stores words with the most significant byte
  • configure

    r4fd12ac ra48d246  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.53 for libtrace 2.0.7.
     3# Generated by GNU Autoconf 2.53 for libtrace 2.0.8.
    44#
    55# Report bugs to <libtrace@wand.net.nz>.
     
    416416PACKAGE_NAME='libtrace'
    417417PACKAGE_TARNAME='libtrace'
    418 PACKAGE_VERSION='2.0.7'
    419 PACKAGE_STRING='libtrace 2.0.7'
     418PACKAGE_VERSION='2.0.8'
     419PACKAGE_STRING='libtrace 2.0.8'
    420420PACKAGE_BUGREPORT='libtrace@wand.net.nz'
    421421
     
    922922  # This message is too long to be a string in the A/UX 3.1 sh.
    923923  cat <<_ACEOF
    924 \`configure' configures libtrace 2.0.7 to adapt to many kinds of systems.
     924\`configure' configures libtrace 2.0.8 to adapt to many kinds of systems.
    925925
    926926Usage: $0 [OPTION]... [VAR=VALUE]...
     
    988988if test -n "$ac_init_help"; then
    989989  case $ac_init_help in
    990      short | recursive ) echo "Configuration of libtrace 2.0.7:";;
     990     short | recursive ) echo "Configuration of libtrace 2.0.8:";;
    991991   esac
    992992  cat <<\_ACEOF
     
    10901090if $ac_init_version; then
    10911091  cat <<\_ACEOF
    1092 libtrace configure 2.0.7
     1092libtrace configure 2.0.8
    10931093generated by GNU Autoconf 2.53
    10941094
     
    11051105running configure, to aid debugging if configure makes a mistake.
    11061106
    1107 It was created by libtrace $as_me 2.0.7, which was
     1107It was created by libtrace $as_me 2.0.8, which was
    11081108generated by GNU Autoconf 2.53.  Invocation command line was
    11091109
     
    16711671# Define the identity of the package.
    16721672PACKAGE=libtrace
    1673 VERSION=2.0.7
     1673VERSION=2.0.8
    16741674
    16751675cat >>confdefs.h <<_ACEOF
     
    93319331cat >&5 <<_CSEOF
    93329332
    9333 This file was extended by libtrace $as_me 2.0.7, which was
     9333This file was extended by libtrace $as_me 2.0.8, which was
    93349334generated by GNU Autoconf 2.53.  Invocation command line was
    93359335
     
    93939393cat >>$CONFIG_STATUS <<_ACEOF
    93949394ac_cs_version="\\
    9395 libtrace config.status 2.0.7
     9395libtrace config.status 2.0.8
    93969396configured by $0, generated by GNU Autoconf 2.53,
    93979397  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  • configure.in

    r4fd12ac ra48d246  
    11dnl Process this file with autoconf to produce a configure script.
    2 AC_INIT(libtrace,2.0.7,[libtrace@wand.net.nz],libtrace)
     2AC_INIT(libtrace,2.0.8,[libtrace@wand.net.nz],libtrace)
    33AC_CONFIG_SRCDIR(lib/trace.c)
    4 AM_INIT_AUTOMAKE(libtrace,2.0.7)
     4AM_INIT_AUTOMAKE(libtrace,2.0.8)
    55
    66dnl GNU C library
  • lib/Makefile.am

    rb36a3b7 ra48d246  
    44libtrace_la_CFLAGS = @ADD_INCLS@
    55libtrace_la_LIBADD = @ADD_LIBS@
    6 libtrace_la_LDFLAGS=-version-info 2:7:0 @ADD_LDFLAGS@
     6libtrace_la_LDFLAGS=-version-info 2:8:0 @ADD_LDFLAGS@
  • lib/Makefile.in

    rb36a3b7 ra48d246  
    8787libtrace_la_CFLAGS = @ADD_INCLS@
    8888libtrace_la_LIBADD = @ADD_LIBS@
    89 libtrace_la_LDFLAGS = -version-info 2:7:0 @ADD_LDFLAGS@
     89libtrace_la_LDFLAGS = -version-info 2:8:0 @ADD_LDFLAGS@
    9090subdir = lib
    9191mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  • lib/trace.c

    r80a2e99 ra48d246  
    14761476 * @returns the new length of the packet, or the original length of the
    14771477 * packet if unchanged
     1478 * NOTE: len refers to the network-level payload of the packet, and not
     1479 * any capture headers included as well. For example, to truncate a packet
     1480 * after the IP header, set scan to sizeof(ethernet_header) + sizeof(ip_header)
    14781481 * @author Daniel Lawson
    14791482 */
     
    14921495                case PCAP:
    14931496                        pcaphdr = (struct pcap_pkthdr *)packet->buffer;
    1494                         pcaphdr->caplen = size;
    1495                         packet->size = size;
     1497                        pcaphdr->caplen = size + sizeof(struct pcap_pkthdr);
     1498                        packet->size = pcaphdr->caplen;
    14961499                        break;
    14971500                case ERF:
     
    14991502                case RTCLIENT:
    15001503                        erfptr = (dag_record_t *)packet->buffer;
    1501                         erfptr->rlen = ntohs(size);
    1502                         packet->size = size;
     1504                        erfptr->rlen = ntohs(size + sizeof(dag_record_t));
     1505                        packet->size = size + sizeof(dag_record_t);
    15031506                        break;
    15041507                case WAGINT:
Note: See TracChangeset for help on using the changeset viewer.