code: function pingNet(net, ip) {
      return new Promise((ac, rj)=>{
          try {
              let params = {timeout: PING_TIMEOUT_IN_SEC};
              switch (process.platform) {
              case 'win32':
              case 'win64': // Never hits
                  break;
              case 'darwin':
              case 'freebsd':
                  params.extra = ['-S', net];
                  break;
              default:
                  params.extra = ['-I', net];
                  break;
              }
  
              ping.sys.probe(ip, ac, params);
          } catch (e) {
              rj(e);
          } ;
      });
  }
docs: /////////////////////////////////////////// /   Utility functions /////////////////////////////////////////// eslint-disable-next-line require-jsdoc