tech-net archive

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

Re: sysctl to disable protocol stack



>> This looks useful, but I'd prefer enabled=0 instread of disabled=1.
>> Similarly for function and variable names in the code.
> So would I, but that's too hard ...   it means every domain struct,
> for every protocol [...] needs to have the enabled field set -

You can get most of the way there by writing it the enabled way and
then just inverting the bit when you go to actually check the domain
struct.  Then all the interfaces are written for "enabled", except for
the one that, as you point out, kinda has to be 0==enabled.

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML                mouse%rodents-montreal.org@localhost
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index