print-lwapp.c (190207) | print-lwapp.c (241235) |
---|---|
1/* 2 * Copyright (c) 1998-2007 The TCPDUMP project 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that: (1) source code 6 * distributions retain the above copyright notice and this paragraph 7 * in its entirety, and (2) distributions including binary code include 8 * the above copyright notice and this paragraph in its entirety in --- 160 unchanged lines hidden (view full) --- 169}; 170 171void 172lwapp_control_print(const u_char *pptr, u_int len, int has_ap_ident) { 173 174 const struct lwapp_transport_header *lwapp_trans_header; 175 const struct lwapp_control_header *lwapp_control_header; 176 const u_char *tptr; | 1/* 2 * Copyright (c) 1998-2007 The TCPDUMP project 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that: (1) source code 6 * distributions retain the above copyright notice and this paragraph 7 * in its entirety, and (2) distributions including binary code include 8 * the above copyright notice and this paragraph in its entirety in --- 160 unchanged lines hidden (view full) --- 169}; 170 171void 172lwapp_control_print(const u_char *pptr, u_int len, int has_ap_ident) { 173 174 const struct lwapp_transport_header *lwapp_trans_header; 175 const struct lwapp_control_header *lwapp_control_header; 176 const u_char *tptr; |
177 int hexdump,tlen; | 177 int tlen; |
178 int msg_tlen; 179 180 tptr=pptr; 181 182 if (has_ap_ident) { 183 /* check if enough bytes for AP identity */ 184 if (!TTEST2(*tptr, 6)) 185 goto trunc; --- 56 unchanged lines hidden (view full) --- 242 lwapp_control_header->msg_type, 243 lwapp_control_header->seq_num, 244 msg_tlen, 245 EXTRACT_32BITS(lwapp_control_header->session_id)); 246 247 /* did we capture enough for fully decoding the message */ 248 if (!TTEST2(*tptr, msg_tlen)) 249 goto trunc; | 178 int msg_tlen; 179 180 tptr=pptr; 181 182 if (has_ap_ident) { 183 /* check if enough bytes for AP identity */ 184 if (!TTEST2(*tptr, 6)) 185 goto trunc; --- 56 unchanged lines hidden (view full) --- 242 lwapp_control_header->msg_type, 243 lwapp_control_header->seq_num, 244 msg_tlen, 245 EXTRACT_32BITS(lwapp_control_header->session_id)); 246 247 /* did we capture enough for fully decoding the message */ 248 if (!TTEST2(*tptr, msg_tlen)) 249 goto trunc; |
250 hexdump=FALSE; | |
251 252 /* XXX - Decode sub messages for each message */ 253 switch(lwapp_control_header->msg_type) { 254 case LWAPP_MSGTYPE_DISCOVERY_REQUEST: 255 case LWAPP_MSGTYPE_DISCOVERY_RESPONSE: 256 case LWAPP_MSGTYPE_JOIN_REQUEST: 257 case LWAPP_MSGTYPE_JOIN_RESPONSE: 258 case LWAPP_MSGTYPE_JOIN_ACK: --- 102 unchanged lines hidden --- | 250 251 /* XXX - Decode sub messages for each message */ 252 switch(lwapp_control_header->msg_type) { 253 case LWAPP_MSGTYPE_DISCOVERY_REQUEST: 254 case LWAPP_MSGTYPE_DISCOVERY_RESPONSE: 255 case LWAPP_MSGTYPE_JOIN_REQUEST: 256 case LWAPP_MSGTYPE_JOIN_RESPONSE: 257 case LWAPP_MSGTYPE_JOIN_ACK: --- 102 unchanged lines hidden --- |