Changeset d1af45d
- Timestamp:
- 05/13/14 16:25:33 (7 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:
- 5692bc4
- Parents:
- dad224b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_linux.c
r7a529a9 rd1af45d 1020 1020 struct pollfd pollset; 1021 1021 int ret; 1022 unsigned int snaplen; 1022 1023 1023 1024 ring_release_frame(libtrace, packet); … … 1048 1049 1049 1050 packet->buffer = header; 1051 1052 /* If a snaplen was configured, automatically truncate the packet to 1053 * the desired length. 1054 */ 1055 snaplen=LIBTRACE_MIN( 1056 (int)LIBTRACE_PACKET_BUFSIZE-(int)sizeof(*header), 1057 (int)FORMAT(libtrace->format_data)->snaplen); 1058 1059 TO_TP_HDR(packet->buffer)->tp_snaplen = LIBTRACE_MIN((unsigned int)snaplen, TO_TP_HDR(packet->buffer)->tp_len); 1050 1060 1051 1061 /* Move to next buffer */
Note: See TracChangeset
for help on using the changeset viewer.