Gjsify LogoGjsify Logo

Hierarchy

  • IPRoutingRule

Index

Constructors

Properties

name: string

Methods

  • get_action(): number
  • get_addr_family(): number
  • get_destination_port_end(): number
  • get_destination_port_start(): number
  • get_from(): string
  • get_from_len(): number
  • get_fwmark(): number
  • get_fwmask(): number
  • get_iifname(): string
  • get_invert(): boolean
  • get_ipproto(): number
  • get_oifname(): string
  • get_priority(): number
  • get_source_port_end(): number
  • get_source_port_start(): number
  • get_suppress_prefixlength(): number
  • get_table(): number
  • get_to(): string
  • get_to_len(): number
  • get_tos(): number
  • get_uid_range(): [boolean, number, number]
  • is_sealed(): boolean
  • seal(): void
  • Seals the routing rule. Afterwards, the instance can no longer be modified, and it is a bug to call any of the accessors that would modify the rule. If self was already sealed, this has no effect.

    Returns void

  • set_action(action: number): void
  • Note that currently only certain actions are allowed. nm_ip_routing_rule_validate() will reject unsupported actions as invalid.

    Parameters

    • action: number

      the action to set

    Returns void

  • set_destination_port(start: number, end: number): void
  • set_from(from: string, len: number): void
  • Setting invalid values is accepted, but will later fail during nm_ip_routing_rule_validate().

    Parameters

    • from: string

      the from/src address to set. The address family must match.

    • len: number

      the corresponding prefix length of the address.

    Returns void

  • set_fwmark(fwmark: number, fwmask: number): void
  • set_iifname(iifname: string): void
  • The name supports C backslash escaping for non-UTF-8 characters. Note that nm_ip_routing_rule_from_string() too uses backslash escaping when tokenizing the words by whitespace. So, in string representation you'd get double backslashes.

    Parameters

    • iifname: string

      the iifname to set or %NULL to unset.

    Returns void

  • set_invert(invert: boolean): void
  • set_ipproto(ipproto: number): void
  • set_oifname(oifname: string): void
  • The name supports C backslash escaping for non-UTF-8 characters. Note that nm_ip_routing_rule_from_string() too uses backslash escaping when tokenizing the words by whitespace. So, in string representation you'd get double backslashes.

    Parameters

    • oifname: string

      the oifname to set or %NULL to unset.

    Returns void

  • set_priority(priority: number): void
  • A valid priority ranges from 0 to %G_MAXUINT32. "-1" is also allowed to reset the priority. It is a bug calling this function with any other value.

    Parameters

    • priority: number

      the priority to set

    Returns void

  • set_source_port(start: number, end: number): void
  • set_suppress_prefixlength(suppress_prefixlength: number): void
  • set_table(table: number): void
  • set_to(to: string, len: number): void
  • Setting invalid values is accepted, but will later fail during nm_ip_routing_rule_validate().

    Parameters

    • to: string

      the to/dst address to set. The address family must match.

    • len: number

      the corresponding prefix length of the address. If to is %NULL, this valid is ignored.

    Returns void

  • set_tos(tos: number): void
  • set_uid_range(uid_range_start: number, uid_range_end: number): void
  • For a valid range, start must be less or equal to end. If set to an invalid range, the range gets unset.

    Parameters

    • uid_range_start: number

      the uid_range start to set.

    • uid_range_end: number

      the uid_range start to set.

    Returns void

  • unref(): void
  • Decreases the reference count of the instance and destroys the instance if the reference count reaches zero. This is not thread-safe.

    Returns void

  • validate(): boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method