Changeset 1b95fd0
- Timestamp:
- 05/23/06 14:56:06 (15 years ago)
- 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:
- 63f4967
- Parents:
- f6c2d8d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/protocols.c
r77285d9 r1b95fd0 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.