code: def getMask (self, ifname):
          
          if sys.platform == 'darwin':
              return ifconfig_inet(ifname).get('netmask')
          return self._getaddr(ifname, self.SIOCGIFNETMASK)
docs: Get the netmask for an interface.
          @param ifname: interface name
          @type ifname: string