knet_host_get_policy(3)

knet_host_get_policy3

Get the switching policy for a host's links.

Usage

#include <libknet.h>

int knet_host_get_policy(
    knet_handle_t   knet_h,
    knet_node_id_t  host_id,
    uint8_t        *policy
);

Overview

knet_host_get_policy

knet_h - pointer to knet_handle_t

host_id - see knet_host_add(3)

policy - will contain the current configured switching policy. Default is passive when creating a new host.

Return value

knet_host_get_policy returns 0 on success -1 on error and errno is set.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

From libknet-doc 1.31-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.