4 * Copyright (C) 2000-2002 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
8 * Id: fill6bits.c,v 1.5.4.1 2006/06/16 17:20:58 darrenr Exp
14 void fill6bits(bits
, msk
)
34 msk
[3] = htonl(msk
[3] << (128 - bits
));
35 } else if (bits
> 64) {
37 msk
[2] = htonl(msk
[2] << (96 - bits
));
38 } else if (bits
> 32) {
41 msk
[1] = htonl(msk
[1] << (64 - bits
));
46 msk
[0] = htonl(msk
[0] << (32 - bits
));