knet_host_get_status(3)

knet_host_get_status3

Get the status of a host.

Usage

#include <libknet.h>

int knet_host_get_status(
    knet_handle_t              knet_h,
    knet_node_id_t             host_id,
    struct knet_host_status   *status
);

Overview

knet_host_get_status

knet_h - pointer to knet_handle_t

host_id - see knet_host_add(3)

status - pointer to knet_host_status struct

Structures

status of a knet host, returned from knet_host_get_status() 
struct knet_host_status {
    uint8_t  reachable;  /* Whether the host is currently reachable */
    /*
     * Whether the host is a remote node (not currently implemented)
     */
    uint8_t  remote;
    /*
     * Whether the host is external (not currently implemented)
     */
    uint8_t  external;
};

Return value

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