tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: sysctl to disable protocol stack
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.
Home |
Main Index |
Thread Index |
Old Index