Changeset 819
- Timestamp:
- 05/23/06 14:56:06 (7 years ago)
- File:
-
- 1 edited
-
trunk/lib/protocols.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/protocols.c
r795 r819 337 337 { 338 338 void *transport; 339 uint8_t dummy ;339 uint8_t dummy_proto; 340 340 uint16_t ethertype; 341 341 void *link; 342 343 if (!proto) proto=&dummy; 344 345 if (remaining) 346 *remaining = trace_get_capture_length(packet); 342 uint32_t dummy_remaining; 343 344 if (!proto) proto=&dummy_proto; 345 346 if (!remaining) remaining=&dummy_remaining; 347 348 *remaining = trace_get_capture_length(packet); 347 349 348 350 link=trace_get_link(packet); … … 500 502 DLLEXPORT uint16_t trace_get_source_port(const libtrace_packet_t *packet) 501 503 { 504 uint32_t remaining; 502 505 struct ports_t *port = 503 506 (struct ports_t*)trace_get_transport((libtrace_packet_t*)packet, 504 NULL, NULL); 507 NULL, &remaining); 508 509 /* snapped too early */ 510 if (remaining<2) 511 return 0; 505 512 506 513 if (port)
Note: See TracChangeset
for help on using the changeset viewer.
