Ignore:
Timestamp:
05/08/08 14:42:03 (13 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:
1f44884
Parents:
89404f5
Message:

Constification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/link_4.c

    rf5d654e r11a7f9c  
    191191 * length remaining and decodes the IEs.
    192192 */
    193 static void decode_80211_information_elements(char *pkt, unsigned len) {
     193static void decode_80211_information_elements(const char *pkt, unsigned len) {
    194194        ieee80211_ie *ie;
    195195        int i = 0;
     
    425425       
    426426/* Decodes a beacon (or a probe response) */
    427 static void decode_80211_beacon(char *pkt, unsigned len) {
     427static void decode_80211_beacon(const char *pkt, unsigned len) {
    428428        ieee80211_beacon *b = (ieee80211_beacon *)pkt;
    429429        if (len < sizeof(ieee80211_beacon)) {
     
    439439}
    440440
    441 static void decode_80211_assoc_request(char *pkt, unsigned len) {
     441static void decode_80211_assoc_request(const char *pkt, unsigned len) {
    442442        ieee80211_assoc_req *a = (ieee80211_assoc_req *) pkt;
    443443       
     
    453453}
    454454
    455 static void decode_80211_assoc_response(char *pkt, unsigned len) {
     455static void decode_80211_assoc_response(const char *pkt, unsigned len) {
    456456        ieee80211_assoc_resp *r = (ieee80211_assoc_resp *) pkt;
    457457
     
    468468}
    469469       
    470 static void decode_80211_reassoc_request(char *pkt, unsigned len) {
     470static void decode_80211_reassoc_request(const char *pkt, unsigned len) {
    471471        ieee80211_reassoc_req *r = (ieee80211_reassoc_req *) pkt;
    472472
     
    482482}
    483483
    484 static void decode_80211_authentication_frame(char *pkt, unsigned len) {
     484static void decode_80211_authentication_frame(const char *pkt, unsigned len) {
    485485        ieee80211_auth *auth = (ieee80211_auth *)pkt;
    486486        if(len < sizeof(ieee80211_auth)) {
     
    497497}
    498498
    499 static void decode_80211_mgmt(char *pkt, unsigned len) {
     499static void decode_80211_mgmt(const char *pkt, unsigned len) {
    500500        ieee80211_mgmt_frame *mgmt = (ieee80211_mgmt_frame *)pkt;
    501501        uint8_t *data;
     
    580580}
    581581
    582 static void decode_80211_ctrl(char *pkt, unsigned len) {
     582static void decode_80211_ctrl(const 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 static void decode_80211_data(char *pkt, unsigned len) {
     652static void decode_80211_data(const char *pkt, unsigned len) {
    653653        ieee80211_data_frame *data = (ieee80211_data_frame *) pkt;
    654654        ieee80211_qos_data_frame *qos = (ieee80211_qos_data_frame *)pkt;
     
    747747}
    748748
    749 void decode(int link_type, char *pkt, unsigned len)
     749void decode(int link_type, const char *pkt, unsigned len)
    750750{
    751751        ieee80211_frame_control *fc;
Note: See TracChangeset for help on using the changeset viewer.