title: All ip in range of subnet-mask
body: <p>I know how to get all the IP in range </p>
  
  <pre><code>from netaddr import iter_iprange
  generator = iter_iprange('192.168.1.1', '192.168.255.255', step=1)
  </code></pre>
  
  <p>What I want is get all the Ip that fix to subnet mask with some IP.</p>
  
  <p>For example I get Ip 2.2.2.2 and mask 255:255:255:0 so I neet to get 255 ip adrresses 2.2.2.2 - 2.2.2.255 , but if subnetmask is 255.255.255.254 I there is no IP that fix to this</p>
  
  <p>How can I get that in python?</p>