Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "raw"

This module implements the lowest layer, which exposes the native interface (RawNetlinkSocket) to create Netlink sockets and send / receive raw data over them. Its API is intended to mirror dgram.Socket.

Index

Functions

generateLocalPort

  • generateLocalPort(): number
  • Generates a unique port number to bind to, that is supposedly not being used. However this is not a guarantee, especially if you are using native addons that also create Netlink sockets using other libraries (like libnl).

    Unique port numbers are generated from the PID (lowest 16 bits) and a random number for the highest 16 bits.

    Returns number

    Unique port number

Generated using TypeDoc