Ignore:
Timestamp:
04/27/07 23:35:49 (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:
d6d2a32
Parents:
0f42351
Message:

More warning fixes -- convert the length to be an unsigned number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/link_4.c

    r2f60c8f r4f55f69  
    167167 * Takes a vendor IE and decodes it
    168168 */
    169 void decode_80211_vendor_ie(ieee80211_ie *ie) {
     169static void decode_80211_vendor_ie(ieee80211_ie *ie) {
    170170        uint8_t *data = (uint8_t *) ((char *)ie + sizeof(ieee80211_ie));
    171171        uint32_t ie_oui;       
     
    191191 * length remaining and decodes the IEs.
    192192 */
    193 void decode_80211_information_elements(char *pkt, unsigned len) {
     193static void decode_80211_information_elements(char *pkt, unsigned len) {
    194194        ieee80211_ie *ie;
    195195        int i = 0;
     
    404404
    405405/* Decodes a capability info field */
    406 void decode_80211_capinfo(ieee80211_capinfo *c) {
     406static void decode_80211_capinfo(ieee80211_capinfo *c) {
    407407        printf(" 802.11MAC: Capability Info:");
    408408        if (c->ess) printf(" ESS");
     
    425425       
    426426/* Decodes a beacon (or a probe response) */
    427 void decode_80211_beacon(char *pkt, unsigned len) {
     427static void 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, unsigned len) {
     441static void 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, unsigned len) {
     455static void 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, unsigned len) {
     470static void decode_80211_reassoc_request(char *pkt, unsigned len) {
    471471        ieee80211_reassoc_req *r = (ieee80211_reassoc_req *) pkt;
    472472
     
    480480        printf(" 802.11MAC: Information Elements:\n");
    481481        decode_80211_information_elements((char *)pkt + sizeof(ieee80211_reassoc_req), len - sizeof(ieee80211_reassoc_req));
    482 
    483 }
    484 void decode_80211_authentication_frame(char *pkt, unsigned len) {
     482}
     483
     484static void 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, unsigned len) {
     499static void 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, unsigned len) {
     582static void 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, unsigned len) {
     652static void 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;
Note: See TracChangeset for help on using the changeset viewer.