Changeset c95b923 for lib/trace.c
- Timestamp:
- 10/20/05 18:30:41 (17 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:
- 194d49b
- Parents:
- fe7b292
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/trace.c
rfe7b292 rc95b923 1347 1347 * @param size the new length of the packet 1348 1348 * @returns the new size of the packet 1349 * 1350 * NOTE: size and the return size refer to the network-level payload of the packet, and not 1351 * any capture headers included as well. For example, to truncate a packet 1352 * after the IP header, set size to sizeof(ethernet_header) + sizeof(ip_header) 1353 * 1354 * If the original network-level payload is smaller than size, then 1355 * the original size is returned and the packet is left unchanged. 1356 * 1349 * @note size and the return size refer to the network-level payload of the 1350 * packet, and do not include any capture headers. For example, to truncate a 1351 * packet after the IP header, set size to sizeof(ethernet_header) + 1352 * sizeof(ip_header) 1353 * @note If the original network-level payload is smaller than size, then the 1354 * original size is returned and the packet is left unchanged. 1357 1355 * @author Daniel Lawson 1358 1356 */ … … 1360 1358 assert(packet); 1361 1359 1362 if (packet->trace->format-> truncate_packet) {1363 return packet->trace->format-> truncate_packet(packet,size);1360 if (packet->trace->format->set_capture_length) { 1361 return packet->trace->format->set_capture_length(packet,size); 1364 1362 } 1365 1363
Note: See TracChangeset
for help on using the changeset viewer.