2 * Copyright (C) 2002 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
6 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
7 * Use is subject to license terms.
10 #pragma ident "%Z%%M% %I% %E% SMI"
14 int ntomask(v
, nbits
, ap
)
26 if (nbits
> 32 || use_inet6
!= 0)
32 mask
<<= (32 - nbits
);