tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: sysctl to disable protocol stack
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.)
best regards
Matthias
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index