:tocdepth: 3

base/protocols/socks/consts.bro
===============================
.. bro:namespace:: SOCKS


:Namespace: SOCKS
:Source File: :download:`/scripts/base/protocols/socks/consts.bro`

Summary
~~~~~~~
Constants
#########
=============================================================================================================================== =
:bro:id:`SOCKS::v4_status`: :bro:type:`table` :bro:attr:`&default` = :bro:type:`function` :bro:attr:`&optional`                 
:bro:id:`SOCKS::v5_authentication_methods`: :bro:type:`table` :bro:attr:`&default` = :bro:type:`function` :bro:attr:`&optional` 
:bro:id:`SOCKS::v5_status`: :bro:type:`table` :bro:attr:`&default` = :bro:type:`function` :bro:attr:`&optional`                 
=============================================================================================================================== =

Types
#####
================================================ =
:bro:type:`SOCKS::RequestType`: :bro:type:`enum` 
================================================ =


Detailed Interface
~~~~~~~~~~~~~~~~~~
Constants
#########
.. bro:id:: SOCKS::v4_status

   :Type: :bro:type:`table` [:bro:type:`count`] of :bro:type:`string`
   :Attributes: :bro:attr:`&default` = :bro:type:`function` :bro:attr:`&optional`
   :Default:

   ::

      {
         [92] = "request failed because client is not running identd",
         [90] = "succeeded",
         [91] = "general SOCKS server failure",
         [93] = "request failed because client's identd could not confirm the user ID string in the request"
      }


.. bro:id:: SOCKS::v5_authentication_methods

   :Type: :bro:type:`table` [:bro:type:`count`] of :bro:type:`string`
   :Attributes: :bro:attr:`&default` = :bro:type:`function` :bro:attr:`&optional`
   :Default:

   ::

      {
         [0] = "No Authentication Required",
         [5] = "Challenge-Response Authentication Method",
         [2] = "Username/Password",
         [7] = "NDS Authentication",
         [3] = "Challenge-Handshake Authentication Protocol",
         [6] = "Secure Sockets Layer",
         [1] = "GSSAPI",
         [255] = "No Acceptable Methods",
         [8] = "Multi-Authentication Framework"
      }


.. bro:id:: SOCKS::v5_status

   :Type: :bro:type:`table` [:bro:type:`count`] of :bro:type:`string`
   :Attributes: :bro:attr:`&default` = :bro:type:`function` :bro:attr:`&optional`
   :Default:

   ::

      {
         [0] = "succeeded",
         [5] = "Connection refused",
         [4] = "Host unreachable",
         [2] = "connection not allowed by ruleset",
         [7] = "Command not supported",
         [3] = "Network unreachable",
         [6] = "TTL expired",
         [1] = "general SOCKS server failure",
         [8] = "Address type not supported"
      }


Types
#####
.. bro:type:: SOCKS::RequestType

   :Type: :bro:type:`enum`

      .. bro:enum:: SOCKS::CONNECTION SOCKS::RequestType

      .. bro:enum:: SOCKS::PORT SOCKS::RequestType

      .. bro:enum:: SOCKS::UDP_ASSOCIATE SOCKS::RequestType



