Date: Sat, 16 Feb 2002 05:09:45 -0800 From: "Crist J. Clark" <cjc@FreeBSD.ORG> To: Tariq Rashid <tariq@inty.net> Cc: freebsd-net@FreeBSD.ORG Subject: Re: kernel source for reading from divert sockets Message-ID: <20020216050945.H36782@blossom.cjclark.org> In-Reply-To: <MPENKFCCIIDAJKJJOLBHOEGBCIAA.tariq@inty.net>; from tariq@inty.net on Fri, Feb 15, 2002 at 03:29:04PM -0000 References: <MPENKFCCIIDAJKJJOLBHOEGBCIAA.tariq@inty.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 15, 2002 at 03:29:04PM -0000, Tariq Rashid wrote: > > can anyone point me to the kernel source where packets are taken from the > DIVERT socket (natd puts them there) - > > i'm finding that sendto() is taking most of the CPU - so i want to have a > look at maybe taking two or three packets from the DIVERT buffer per kernel > loop. > > (i'm not an expert at this by ny means - so useful help would be great!) Look in sys/netinet. ip_divert.c, ip_input.c, and ip_output.c are good starts. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020216050945.H36782>