Changeset 843


Ignore:
Timestamp:
05/31/06 23:43:18 (7 years ago)
Author:
perry
Message:

Fix 64bit issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libpacketdump/link_4.cc

    r797 r843  
    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.