Re: CONFIG_PACKET_MMAP help

2001-04-20 Thread kuznet
Hello! > 1. for tp_frame_size, I dont want to truncate any data on ethernet, I > need 1514 bytes, is this the best way to do it and not waste space? To select small snapsize (obtained from later experiments), to set PACKET_COPY_THRESH to read larger packets via recvmsg(). > 2. what is tp_block_

Re: CONFIG_PACKET_MMAP help

2001-04-19 Thread Edgar Toernig
Hi, [EMAIL PROTECTED] wrote: > > 1. for tp_frame_size, I dont want to truncate any data on ethernet, I > need 1514 bytes, is this the best way to do it and not waste space? > > static const int TURBO_FRAME_SIZE= > TPACKET_ALIGN(TPACKET_ALIGN(sizeof(tpacket_hdr)) + >TPAC

CONFIG_PACKET_MMAP help

2001-04-18 Thread kambo
Hi, I upgrading an application to the CONFIG_PACKET_MMAP interface, and was trying to figure out how the api works. I 'RTFS' But had a few questions: 1. for tp_frame_size, I dont want to truncate any data on ethernet, I need 1514 bytes, is this the best way to do it and not waste space? static