[r=rvb,allenap][bug=1379641][author=jtv] Pass netmasks along with the parameters for generating /etc/network/interfaces.
This is one of a group of 4 branches that together implement support for arbitrary netmasks in IPv6. But the netmasks would also be useful in configuring static IPv4 addresses later.