knet_link_rm_acl(3)

knet_link_rm_acl3

Remove access list entry from an open link.

Usage

#include <libknet.h>

int knet_link_rm_acl(
    knet_handle_t              knet_h,
    knet_node_id_t             host_id,
    uint8_t                    link_id,
    struct sockaddr_storage   *ss1,
    struct sockaddr_storage   *ss2,
    check_type_t               type,
    check_acceptreject_t       acceptreject
);

Overview

knet_link_rm_acl

knet_h - pointer to knet_handle_t

host_id - see knet_host_add(3)

link_id - see knet_link_set_config(3)

ss1 / ss2 / type / acceptreject - see typedef definitions for details

IMPORTANT: the data passed to this API call must match exactly that passed to knet_link_add_acl(3).

Structures

enum check_type_t {
      CHECK_TYPE_ADDRESS;
      CHECK_TYPE_MASK;
      CHECK_TYPE_RANGE;
};
enum check_acceptreject_t {
      CHECK_ACCEPT;
      CHECK_REJECT;
};

Return value

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

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

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