knet_link_get_config(3)

knet_link_get_config3

Get the link configutation information.

Usage

#include <libknet.h>

int knet_link_get_config(
    knet_handle_t              knet_h,
    knet_node_id_t             host_id,
    uint8_t                    link_id,
    uint8_t                   *transport,
    struct sockaddr_storage   *src_addr,
    struct sockaddr_storage   *dst_addr,
    uint8_t                   *dynamic,
    uint64_t                  *flags
);

Overview

knet_link_get_config

knet_h - pointer to knet_handle_t

host_id - see knet_host_add(3)

link_id - see knet_link_set_config(3)

transport - see knet_link_set_config(3)

src_addr - sockaddr_storage that can be either IPv4 or IPv6

dst_addr - sockaddr_storage that can be either IPv4 or IPv6

dynamic - 0 if dst_addr is static or 1 if dst_addr is dynamic. In case of 1, dst_addr can be NULL and it will be left untouched.

flags - KNET_LINK_FLAG_*

Return value

knet_link_get_config 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.