Changeset 1840
- Timestamp:
- 04/22/07 15:47:59 (21 months ago)
- Location:
- trunk/src/tcpedit/plugins/dlt_ieee80211
- Files:
-
- 3 modified
-
ieee80211.c (modified) (1 diff)
-
ieee80211_hdr.c (modified) (2 diffs)
-
ieee80211_hdr.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tcpedit/plugins/dlt_ieee80211/ieee80211.c
r1838 r1840 202 202 } 203 203 204 if (ieee80211_is_encrypted( (ieee80211_hdr_t *)packet)) {204 if (ieee80211_is_encrypted(ctx, packet, pktlen)) { 205 205 tcpedit_seterr(ctx->tcpedit, "Packet " COUNTER_SPEC " is encrypted. Unable to decode frame.", 206 206 ctx->tcpedit->runtime.packetnum); -
trunk/src/tcpedit/plugins/dlt_ieee80211/ieee80211_hdr.c
r1838 r1840 50 50 assert(ctx); 51 51 assert(packet); 52 assert(pktlen >= (int)sizeof(ieee80211_hdr_t)); 52 53 53 54 /* … … 101 102 */ 102 103 int 103 ieee80211_is_encrypted( const ieee80211_hdr_t *hdr)104 ieee80211_is_encrypted(tcpeditdlt_t *ctx, const void *packet, const int pktlen) 104 105 { 105 106 u_int16_t *frame_control, fc; 106 assert(hdr);107 107 108 frame_control = (u_int16_t *)hdr; 108 assert(ctx); 109 assert(packet); 110 assert(pktlen >= (int)sizeof(ieee80211_hdr_t)); 111 112 frame_control = (u_int16_t *)packet; 109 113 fc = ntohs(*frame_control); 110 114 -
trunk/src/tcpedit/plugins/dlt_ieee80211/ieee80211_hdr.h
r1838 r1840 39 39 40 40 int ieee80211_is_data(tcpeditdlt_t *ctx, const void *packet, const int pktlen); 41 int ieee80211_is_encrypted(tcpeditdlt_t *ctx, const void *packet, const int pktlen); 42 41 43 char *ieee80211_get_src(const void *header); 42 44 char *ieee80211_get_dst(const void *header);
