tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sysctl to disable protocol stack



On Wed, Dec 09, 2009 at 03:34:27PM -0800, Matt Thomas wrote:
> 
> On Dec 9, 2009, at 1:34 PM, Matthias Drochner wrote:
> 
> > 
> > kre%munnari.OZ.AU@localhost said:
> >> X-            if (pffinddomain(dom) == 0)
> >> X+            if ((dp = pffinddomain(dom)) == 0)
> >> X+                    return EAFNOSUPPORT;
> >> X+            if (dom_disabled(dp, DOMAIN_NO_SOCKETS))
> >> X                     return EAFNOSUPPORT;
> > 
> > Why so complicated, adding bloat and runtime overhead?
> > The protocols could just be removed from the domsw
> > table, so the normal lookup would do it.
> > I think this is the way to go because a modular system
> > should be able to dynamically load/unload network protocols
> > anyway.
> > (I had protocol LKMs kind of working years ago when I was
> > developing ATM stuff.)
> 
> Doesn't help if_xxxsubr.c ...  You really don't want them to
> to put packets in the netisr ifqueues.

struct domain points at the netisr ifqueues, shouldn't we access them
through dom_ifqueues[] from if_xxxsubr.c, anyway?

DOMAIN_NO_INPUT -> IFQ_MAXLEN(dom_ifqueues[i]) == 0 for all i.

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933


Home | Main Index | Thread Index | Old Index