From owner-freebsd-net@FreeBSD.ORG Thu Aug 2 00:13:41 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0AD516A4FA for ; Thu, 2 Aug 2007 00:13:41 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outX.internet-mail-service.net (outX.internet-mail-service.net [216.240.47.247]) by mx1.freebsd.org (Postfix) with ESMTP id 9FDD313C46B for ; Thu, 2 Aug 2007 00:13:41 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.32) with ESMTP; Wed, 01 Aug 2007 17:13:41 -0700 Received: from julian-mac.elischer.org (nat.ironport.com [63.251.108.100]) by idiom.com (Postfix) with ESMTP id A18AD125AE6; Wed, 1 Aug 2007 17:13:40 -0700 (PDT) Message-ID: <46B121D7.1080204@elischer.org> Date: Wed, 01 Aug 2007 17:14:15 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.5 (Macintosh/20070716) MIME-Version: 1.0 To: "Christian S.J. Peron" References: <20070731162515.GA3684@sub> <20070801222613.GA7689@sub.vaned.net> In-Reply-To: <20070801222613.GA7689@sub.vaned.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, rwatson@freebsd.org Subject: Re: divert and deadlock issues X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2007 00:13:42 -0000 Christian S.J. Peron wrote: > Group, > > I've come up with a basic patch, here are the highlights as per our discussion: > > - Check for the presence of socket options, if they are present duplicate > them using m_dup(9) > - Drop the INP/INFO locks after duplication > - Activate ip_output() with the cloned mbuf (for socket options). Also, > set the multicast options to NULL > - Add div_cltoutput() to handle any calls to setsockopt(2) that might be > changing multicast parameters. If we see any multicast parameters, > return EOPNOTSUPP (Operation Not Supported), otherwise wrap the call > into ip_ctloutput() (as it was before). > > One portion that is missing with rwatson's netisr change. I've done some very > basic testing on this end and things appear to work. If this group is OK > with this patch, I would like to forward it off to current@ for some > potential testers and comment. > > Thanks! > > > I like it. > ------------------------------------------------------------------------ > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"