Method: Subnets::Net4#prefixlen

Defined in:
ext/subnets/ext.c

#prefixlenFixnum

The prefix length of this network, or number of leading ones in the netmask.

Returns:

  • (Fixnum)


416
417
418
419
420
421
# File 'ext/subnets/ext.c', line 416

VALUE
method_net4_prefixlen(VALUE self) {
  net4_t *net;
  Data_Get_Struct(self, net4_t, net);
  return INT2FIX(net->prefixlen);
}