KNET_HAN...ESS_LISTS(3)

✨ KNET_HAN...ESS_LISTS(3) ✨

okay bestie, welcome to the Kronosnet Programmer's Manual πŸ’– this is the section-3 page for knet_handle_enable_access_lists, and it's literally the switch that decides whether your access lists are actually doing something or just vibing in the void. let's get into it 🫢


🌸 NAME 🌸

knet_handle_enable_access_lists β€” turn usage of access lists on or off (default: off, bestie, it starts off)


πŸŽ€ SYNOPSIS πŸŽ€

#include <libknet.h>

int knet_handle_enable_access_lists(
    knet_handle_t  knet_h,
    unsigned int   enabled
);

πŸ¦‹ DESCRIPTION πŸ¦‹

knet_handle_enable_access_lists β€” the function itself, the main character πŸ‘‘

knet_h β€” pointer to knet_handle_t ✨

enable β€” set to 1 to use access lists, 0 to disable access_lists.

so here's the tea, bestie: access lists are bound to links. and there are exactly 2 types of links:

  1. point to point β€” where both source and destinations are well known at configuration time πŸ”’
  2. open links β€” where only the source is known at configuration time πŸ™ˆ

and here's the slay part: knet will automatically generate access lists for point to point links. no work required, she does it herself πŸ’…

for open links tho? that's on you, babes. knet provides 4 API calls to manipulate access lists: knet_link_add_acl(3), knet_link_rm_acl(3), knet_link_insert_acl(3) and knet_link_clear_acl(3). those API calls will work exclusively on open links as they are of no use on point to point links. exclusive behavior, we love to see it ✨

⚠️ important warning bestie: knet will not enforce any access list unless specifically enabled by knet_handle_enable_access_lists(3). no cap. it will just sit there doing nothing.

from a security / programming perspective we recommend: create the knet handle

  1. create the knet handle
  2. enable access lists
  3. configure hosts and links
  4. configure access lists for open links

in that order, fr fr, don't freestyle it 🧚


πŸ’œ RETURN VALUE πŸ’œ

knet_handle_enable_access_lists returns 0 on success, -1 on error, and errno is set. that's the whole vibe check right there 😭


🌈 SEE ALSO 🌈

a whole group chat of friends, bestie, every single one of them:


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


and that's the whole page, bestie!! πŸŽ€ this one came from the kronosnet source, dated 2026-07-20, so if you ever need to cite it: kronosnet, 2026-07-20, page KNET_HAN...ESS_LISTS(3). now go forth and enable those access lists, you absolute icon πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from