Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5834

Add Networking Functions

    XMLWordPrintableJSON

Details

    Description

      On the heels of the PCAP plugin, this is a collection of functions that would facilitate network analysis using Drill.

      The functions include:

      inet_aton(<ip>): Converts an IPv4 address into an integer.
      inet_ntoa( <int>): Converts an integer IP into dotted decimal notation
      in_network( <ip>,<cidr> ): Returns true if the IP address is in the given CIDR block
      address_count( <cidr> ): Returns the number of IPs in a given CIDR block
      broadcast_address( <cidr> ): Returns the broadcast address for a given CIDR block
      netmask(<cidr> ): Returns the netmask for a given CIDR block.
      low_address(<cidr>): Returns the first address in a given CIDR block.
      high_address(<cidr>): Returns the last address in a given CIDR block.
      url_encode( <url> ): Returns a URL encoded string.
      url_decode( <url> ): Decodes a URL encoded string.
      is_valid_IP(<ip>): Returns true if the IP is a valid IP address
      is_private_ip(<ip>): Returns true if the IP is a private IPv4 address
      is_valid_IPv4(<ip>): Returns true if the IP is a valid IPv4 address
      is_valid_IPv6(<ip>): Returns true if the IP is a valid IPv6 address

      Attachments

        Activity

          People

            cgivre Charles Givre
            cgivre Charles Givre
            Arina Ielchiieva Arina Ielchiieva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: