Date: Thu, 09 Oct 2003 00:20:10 +0300 From: Valentine Zaretsky <zaretsky@apex.dp.ua> To: ipfw@freebsd.org Subject: Limiting data size in tee rules Message-ID: <3F847F8A.9030300@apex.dp.ua>
next in thread | raw e-mail | index | archive | help
Hi! In some applications there is no need to send the whole packet to divert-socket (e.g. traffic accounting, where information contained in headers is enough) and it might be useful to have a setting for the length of data buffer that will be diverted from each matching packet. For example: ipfw add 1000 tee 4321 snaplen 68 ip from any to any via fxp0 # 68 bytes from each packet will be diverted to port 4321. It seems that such a trick will reduce overhead of data copying to userland, won't it? -- Regards, Valentine
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F847F8A.9030300>