Changeset 5b825b3
- Timestamp:
- 12/14/12 09:41:04 (9 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:
- 7d6d80e
- Parents:
- 90e8d92
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_linux.c
r6ba84d9 r5b825b3 78 78 #define MAX_ORDER 10 79 79 80 /* Cached page size, the page size shou dn't be changing */80 /* Cached page size, the page size shouldn't be changing */ 81 81 static int pagesize = 0; 82 82 … … 302 302 */ 303 303 if (ioctl(fd, SIOCGIFMTU, (caddr_t) &ifr) >= 0) 304 max_frame = ifr.ifr_mtu + sizeof(struct tpacket2_hdr);304 max_frame = ifr.ifr_mtu + TPACKET_ALIGN(TPACKET_HDRLEN); 305 305 if (max_frame > LIBTRACE_PACKET_BUFSIZE) 306 306 max_frame = LIBTRACE_PACKET_BUFSIZE;
Note: See TracChangeset
for help on using the changeset viewer.