Ignore:
Timestamp:
04/25/06 16:37:02 (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:
bf66333
Parents:
cee9e34
Message:

Fix support for writing on interfaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapfile.c

    r91db67b r030aa3f  
    6767static uint16_t swaps(libtrace_t *libtrace, uint16_t num)
    6868{
     69        /* to deal with open_dead traces that might try and use this
     70         * if we don't have any per trace data, assume host byte order
     71         */
     72        if (!DATA(libtrace))
     73                return num;
    6974        if (DATA(libtrace)->header.magic_number == 0xd4c3b2a1)
    7075                return ((num<<8)&0xFF00)|((num>>8)&0x00FF);
     
    7479static uint32_t swapl(libtrace_t *libtrace, uint32_t num)
    7580{
     81        /* to deal with open_dead traces that might try and use this
     82         * if we don't have any per trace data, assume host byte order
     83         */
     84        if (!DATA(libtrace))
     85                return num;
    7686        if (DATA(libtrace)->header.magic_number == 0xd4c3b2a1)
    7787                return
Note: See TracChangeset for help on using the changeset viewer.