Changeset 013de36e


Ignore:
Timestamp:
03/17/09 15:09:06 (13 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:
f0b87a7
Parents:
45b7073
Message:

Don't use memcpy() with the wrong byte order (reported by scottr)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_linux.c

    r91b72d3 r013de36e  
    464464        hdr.sll_pkttype = 0;
    465465        hdr.sll_halen = htons(6); /* FIXME */
    466         memcpy(hdr.sll_addr,packet->payload,(size_t)hdr.sll_halen);
     466        memcpy(hdr.sll_addr,packet->payload,(size_t)ntohs(hdr.sll_halen));
    467467
    468468        return sendto(DATAOUT(trace)->fd,
Note: See TracChangeset for help on using the changeset viewer.