Gjsify LogoGjsify Logo

Hierarchy

  • IPRoutingRule

Index

Constructors

Properties

name: string

Methods

  • getAction(): number
  • getAddrFamily(): number
  • getDestinationPortEnd(): number
  • getDestinationPortStart(): number
  • getFrom(): string
  • getFromLen(): number
  • getFwmark(): number
  • getFwmask(): number
  • getIifname(): string
  • getInvert(): boolean
  • getIpproto(): number
  • getOifname(): string
  • getPriority(): number
  • getSourcePortEnd(): number
  • getSourcePortStart(): number
  • getSuppressPrefixlength(): number
  • getTable(): number
  • getTo(): string
  • getToLen(): number
  • getTos(): number
  • getUidRange(): [boolean, number, number]
  • isSealed(): 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

  • setAction(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

  • setDestinationPort(start: number, end: number): void
  • setFrom(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

  • setFwmark(fwmark: number, fwmask: number): void
  • setIifname(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

  • setInvert(invert: boolean): void
  • setIpproto(ipproto: number): void
  • setOifname(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

  • setPriority(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

  • setSourcePort(start: number, end: number): void
  • setSuppressPrefixlength(suppressPrefixlength: number): void
  • setTable(table: number): void
  • setTo(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

  • setTos(tos: number): void
  • setUidRange(uidRangeStart: number, uidRangeEnd: 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

    • uidRangeStart: number

      the uid_range start to set.

    • uidRangeEnd: 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