From owner-freebsd-hackers Wed Jan 24 15: 0:30 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from gradient.cis.upenn.edu (GRADIENT.CIS.UPENN.EDU [158.130.67.48]) by hub.freebsd.org (Postfix) with ESMTP id C605437B402 for ; Wed, 24 Jan 2001 15:00:12 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by gradient.cis.upenn.edu (8.10.1/8.10.1) with ESMTP id f0ON0AF03518; Wed, 24 Jan 2001 18:00:10 -0500 (EST) Date: Wed, 24 Jan 2001 18:00:10 -0500 (EST) From: Alwyn Goodloe To: Luigi Rizzo Cc: hackers@FreeBSD.ORG Subject: Re: Divert Sockets & Fragmentation In-Reply-To: <200101242245.f0OMjUX20166@iguana.aciri.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I was originally diverting udp packets heading to a particular port then I flushed the ipfw and tried: ipfw add 60000 divert 4422 ip all from any to any in and still no packets are received by recvfrom(). Would the port numbers matter for this case. Alwyn agoodloe@gradient.cis.upenn.edu On Wed, 24 Jan 2001, Luigi Rizzo wrote: > it depends on what template do you use for matching. > the firewall acts before reassembly, so for the fragments you will > not be able to see the port numbers. > > cheers > luigi > > > I have been using divert sockets for a while sending small (< MTU) UDP > > packets and everything worked fine. Now that the UDP packets are larger > > (>MTU = 1500) and hence fragmentation is taking place there seems to be a > > problem. tcpdump tells me that the fragmented packets arrive but it seems > > that they are never diverted. I say this because after they are received > > recvfrom () never gets the packet. I've done things like play with the > > nbytes field of the recvfrom() fn. without any success. Any > > suggestions, I'm sure its something stupid. > > > > > > Alwyn > > agoodloe@gradient.cis.upenn.edu > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message