4 * Copyright (C) 2002-2005 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
8 * Id: ntomask.c,v 1.6.2.1 2006/06/16 17:21:07 darrenr Exp
13 int ntomask(v
, nbits
, ap
)
25 if (nbits
> 32 || use_inet6
!= 0)
31 mask
<<= (32 - nbits
);
37 if ((nbits
> 128) || (use_inet6
== 0))