Changeset bd6869b


Ignore:
Timestamp:
05/31/06 23:43:18 (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:
ebe0c7f
Parents:
889ddc3
Message:

Fix 64bit issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/link_4.cc

    r4e65f42 rbd6869b  
    4343        printf(" %s",trace_ether_ntoa((uint8_t*)(hdr->mac3), ether_buf));
    4444
    45         struct ieee_802_11_payload *pld = (struct ieee_802_11_payload *) ((int)packet + sizeof(struct ieee_802_11_header) - 2);
     45        struct ieee_802_11_payload *pld = (struct ieee_802_11_payload *) ((char*)packet + sizeof(struct ieee_802_11_header) - 2);
    4646        uint16_t type = htons(pld->type);
    4747        printf(" %04x\n",type);
Note: See TracChangeset for help on using the changeset viewer.