Changeset 19b44c8 for lib


Ignore:
Timestamp:
03/28/13 16:38:53 (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:
b471b67
Parents:
593a7c7
Message:
  • Renamed bpf_timeval structure because OpenBSD doesn't like it at all
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_bpf.c

    r6e6577d r19b44c8  
    6868 */
    6969
    70 struct bpf_timeval {
     70struct lt_bpf_timeval {
    7171        uint32_t tv_sec;
    7272        uint32_t tv_usec;
     
    7474
    7575struct libtrace_bpf_hdr {
    76         struct bpf_timeval bh_tstamp;   /* timestamp */
     76        struct lt_bpf_timeval bh_tstamp;        /* timestamp */
    7777        uint32_t bh_caplen;             /* capture length */
    7878        uint32_t bh_datalen;            /* wire length */
     
    403403         * overwriting anything else important */
    404404
    405         if (sizeof(struct BPF_TIMEVAL) != sizeof(struct bpf_timeval)) {         
     405        if (sizeof(struct BPF_TIMEVAL) != sizeof(struct lt_bpf_timeval)) {     
    406406               
    407407                ptr = ((struct local_bpf_hdr *)(packet->header));
Note: See TracChangeset for help on using the changeset viewer.