Changeset 2f60c8f for libpacketdump


Ignore:
Timestamp:
04/27/07 22:32:15 (14 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:
622dd4d
Parents:
9514ca0
Message:

Get rid of unsigned vs signed warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/link_4.c

    r43ab7b3 r2f60c8f  
    191191 * length remaining and decodes the IEs.
    192192 */
    193 void decode_80211_information_elements(char *pkt, int len) {
     193void decode_80211_information_elements(char *pkt, unsigned len) {
    194194        ieee80211_ie *ie;
    195195        int i = 0;
     
    425425       
    426426/* Decodes a beacon (or a probe response) */
    427 void decode_80211_beacon(char *pkt, int len) {
     427void decode_80211_beacon(char *pkt, unsigned len) {
    428428        ieee80211_beacon *b = (ieee80211_beacon *)pkt;
    429429        if (len < sizeof(ieee80211_beacon)) {
     
    439439}
    440440
    441 void decode_80211_assoc_request(char *pkt, int len) {
     441void decode_80211_assoc_request(char *pkt, unsigned len) {
    442442        ieee80211_assoc_req *a = (ieee80211_assoc_req *) pkt;
    443443       
     
    453453}
    454454
    455 void decode_80211_assoc_response(char *pkt, int len) {
     455void decode_80211_assoc_response(char *pkt, unsigned len) {
    456456        ieee80211_assoc_resp *r = (ieee80211_assoc_resp *) pkt;
    457457
     
    468468}
    469469       
    470 void decode_80211_reassoc_request(char *pkt, int len) {
     470void decode_80211_reassoc_request(char *pkt, unsigned len) {
    471471        ieee80211_reassoc_req *r = (ieee80211_reassoc_req *) pkt;
    472472
     
    482482
    483483}
    484 void decode_80211_authentication_frame(char *pkt, int len) {
     484void decode_80211_authentication_frame(char *pkt, unsigned len) {
    485485        ieee80211_auth *auth = (ieee80211_auth *)pkt;
    486486        if(len < sizeof(ieee80211_auth)) {
     
    497497}
    498498
    499 void decode_80211_mgmt(char *pkt, int len) {
     499void decode_80211_mgmt(char *pkt, unsigned len) {
    500500        ieee80211_mgmt_frame *mgmt = (ieee80211_mgmt_frame *)pkt;
    501501        uint8_t *data;
     
    580580}
    581581
    582 void decode_80211_ctrl(char *pkt, int len) {
     582void decode_80211_ctrl(char *pkt, unsigned len) {
    583583        ieee80211_ctrl_frame_1addr *ctrl1 = (ieee80211_ctrl_frame_1addr *) pkt;
    584584        ieee80211_ctrl_frame_2addr *ctrl2 = (ieee80211_ctrl_frame_2addr *) pkt;
     
    650650}
    651651
    652 void decode_80211_data(char *pkt, int len) {
     652void decode_80211_data(char *pkt, unsigned len) {
    653653        ieee80211_data_frame *data = (ieee80211_data_frame *) pkt;
    654654        ieee80211_qos_data_frame *qos = (ieee80211_qos_data_frame *)pkt;
     
    732732}
    733733
    734 void decode(int link_type, char *pkt, int len)
     734void decode(int link_type, char *pkt, unsigned len)
    735735{
    736736        ieee80211_frame_control *fc;
Note: See TracChangeset for help on using the changeset viewer.