The port-name Module
Keywords: doc-html

Next: The mt Module Up: Analyzers and Events Previous: The scan Analyzer Contents Index

#
The `port-name` Module

The `port-name` utility module provides one redefinable variable and one callable function:

  [``port_names : table[port] of string``] Maps TCP/UDP ports to names for the services associated with those ports. For example, `80/tcp` maps to `"http"`. These names are used by the `conn` analyzer when generating connection logs (§ ).

  [``endpoint_id`(h: addr, p: port): string``` ] Returns a printable form of the given address/port connection endpoint. The format is either `<`address`>/<`service-name`>` or `<`address`>/<`port-number`>` depending on whether the port appears in `port_names`.