Changeset 1340
- Timestamp:
- 02/04/08 16:35:39 (9 months ago)
- Files:
-
- trunk/lib/protocols_l2.c (modified) (2 diffs)
- trunk/lib/protocols_pktmeta.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/protocols_l2.c
r1314 r1340 221 221 { 222 222 uint32_t dummyrem; 223 void *meta = NULL; 223 224 224 225 assert(packet != NULL); … … 228 229 remaining = &dummyrem; 229 230 230 void *meta = trace_get_packet_meta(packet, linktype, remaining);231 meta = trace_get_packet_meta(packet, linktype, remaining); 231 232 232 233 /* If there are no meta-data headers, we just return the start of the trunk/lib/protocols_pktmeta.c
r1314 r1340 90 90 { 91 91 uint32_t dummyrem; 92 92 void *pktbuf = NULL; 93 93 assert(packet != NULL); 94 94 assert(linktype != NULL); … … 97 97 remaining = &dummyrem; 98 98 99 void *pktbuf = trace_get_packet_buffer(packet, linktype, remaining);99 pktbuf = trace_get_packet_buffer(packet, linktype, remaining); 100 100 switch (*linktype) { 101 101 case TRACE_TYPE_LINUX_SLL: … … 182 182 static 183 183 uint8_t *get_source_mac_from_wifi(void *wifi) { 184 struct libtrace_80211_t *w; 184 185 if (wifi == NULL) return NULL; 185 struct libtrace_80211_t *w = (struct libtrace_80211_t *) wifi;186 w = (struct libtrace_80211_t *) wifi; 186 187 187 188 /* If the frame is of type CTRL */ … … 242 243 libtrace_linktype_t linktype; 243 244 uint32_t remaining; 244 245 libtrace_80211_t *wifi; 246 libtrace_ether_t *ethptr; 247 245 248 link = trace_get_layer2(packet,&linktype,&remaining); 246 249 247 libtrace_80211_t *wifi; 248 libtrace_ether_t *ethptr = (libtrace_ether_t*)link; 250 ethptr = (libtrace_ether_t*)link; 249 251 250 252
