KNET_LINK_RM_ACL(3)

okay bestie, welcome to knet_link_rm_acl(3) from the Kronosnet Programmer's Manual β€” this is the girl whose whole job is removing access list entries from an open link. she's the delete button of the ACL world and honestly? iconic. ✨


🌸 NAME 🌸

knet_link_rm_acl β€” Remove access list entry from an open link.

no cap, that's the whole name. she removes, she's an access list entry, she lives on an open link. main character energy fr fr πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#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
);

seven arguments bestie. SEVEN. she's high maintenance but she's worth it 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so like. knet_link_rm_acl πŸ’«

  • knet_h β€” pointer to knet_handle_t. it's giving handle. it's giving "who am i even". πŸ’–
  • host_id β€” see knet_host_add(3) for the whole lore
  • link_id β€” see knet_link_set_config(3), she explains it better than me
  • ss1 / ss2 / type / acceptreject β€” see typedef definitions for details, they're in the STRUCTURES section below, don't worry babe I got you 🌸
IMPORTANT: the data passed to this API call must match exactly that passed to knet_link_add_acl(3). like EXACTLY exactly. not "close enough", not "same vibes". exact. if it doesn't match, that's not gonna work and we're not gonna talk about it 😭 the way that this is literally the entire personality of this function... periodt.

✨ STRUCTURES ✨

here's the enum moment, look at her go πŸ‘‘

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

CHECK_TYPE_ADDRESS, CHECK_TYPE_MASK, CHECK_TYPE_RANGE for how you're checking, and then CHECK_ACCEPT / CHECK_REJECT for the verdict. simple. clean. slay. πŸ’…


🌈 RETURN VALUE 🌈

  • knet_link_rm_acl returns 0 on success ✨
  • -1 on error, and errno is set πŸ’€

so like, check your return values bestie. -1 is not a vibe, -1 is a cry for help.


πŸ”₯ SEE ALSO πŸ”₯

the girlies she runs with, aka the whole friend group, aka every single one of these, no skips:

iykyk. that's seventy (70) besties. she's popular, what can I say πŸ’œ


Copyright (C) 2010-2026 Red Hat, Inc. All rights reserved.


okay that's the whole page, you ate it, you understood it, you're basically a Kronosnet girlie now 🧚

kronosnet Β· 2026-07-20 Β· KNET_LINK_RM_ACL(3) β€” mwah, love you, bye bestie πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from