Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

address_get

  • address_get(ifname: string): string
  • Get MAC address of the network interface

    Parameters

    • ifname: string

      interface name, i.e. eth0, ppp0

    Returns string

    interface mac address

address_measurement

  • address_measurement(ifname: string): void
  • Update measurement on ice connector with MAC address of given interface

    example

    address: require("net").address_measurement("ppp0")

    Parameters

    • ifname: string

      interface name, i.e. eth0, ppp0

    Returns void

carrier_get

  • carrier_get(ifname: string): boolean
  • Get carrier state of the network interface

    Parameters

    • ifname: string

      interface name, i.e. eth0, ppp0

    Returns boolean

    true if interface has carrier detected

carrier_measurement

  • carrier_measurement(ifname: string): void
  • Update measurement on ice connector with carrier state of given interface

    example

    address: require("net").carrier_measurement("ppp0")

    Parameters

    • ifname: string

      interface name, i.e. eth0, ppp0

    Returns void

operstate_get

  • operstate_get(ifname: string): string
  • Get operational state of the network interface

    Parameters

    • ifname: string

      interface name, i.e. eth0, ppp0

    Returns string

    interface operational state unknown|notpresent|down|lowerlayerdown|testing|dormant|up

operstate_measurement

  • operstate_measurement(ifname: string): void
  • Update measurement on ice connector with operational state of given interface

    example

    address: require("net").operstate_measurement("ppp0")

    Parameters

    • ifname: string

      interface name, i.e. eth0, ppp0

    Returns void

Generated using TypeDoc