divert and deadlock issues

Julian Elischer julian at elischer.org
Thu Aug 2 00:13:42 UTC 2007


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"



More information about the freebsd-net mailing list