ipaddr: add Bits method