Ignore:
Timestamp:
11/08/07 12:45:37 (14 years ago)
Author:
Scott Raynel <smr26@…>
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:
3996329
Parents:
8f18776
Message:

Fix a bug in the previous commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/link_4.c

    rde31abb rdc6dc11  
    201201                if ( len < ( sizeof(ieee80211_ie) + ie->length)) {
    202202                        printf("  [Truncated]\n");
     203                        printf("  len = %u, sizeof_ie = %u, ie->len = %u\n",
     204                                        len, sizeof(ieee80211_ie), ie->length);
    203205                        return;
    204206                }
     
    363365                                printf("  Unknown IE Element ID, 0x%02x\n", ie->id);
    364366                }
    365                 len -= sizeof(ieee80211_ie) + ie->length;
     367                len -= (sizeof(ieee80211_ie) + ie->length);
    366368                pkt = ((char *)pkt + sizeof(ieee80211_ie) + ie->length);
    367369        }
Note: See TracChangeset for help on using the changeset viewer.