2 * Copyright (C) 1993-2001 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
6 * $Id: fill6bits.c,v 1.5 2002/03/27 15:09:57 darrenr Exp $
12 void fill6bits(bits
, msk
)
32 msk
[3] = htonl(msk
[3] << (128 - bits
));
33 } else if (bits
> 64) {
35 msk
[2] = htonl(msk
[2] << (96 - bits
));
36 } else if (bits
> 32) {
39 msk
[1] = htonl(msk
[1] << (64 - bits
));
44 msk
[0] = htonl(msk
[0] << (32 - bits
));