KNET_HAN...R_TRAFFIC(3)

πŸ’– KNET_HAN...R_TRAFFIC(3) β€” like, the truncated-girl era of manpage titles πŸ’–

okay so bestie, welcome to section 3 of the Kronosnet Programmer's Manual 🌸 β€” the function we're stanning today is knet_handle_crypto_rx_clear_traffic, and yes the header up top is literally KNET_HAN...R_TRAFFIC(3) because the title got cut off mid-sentence like a text you sent while walking into a door. we move. πŸ’…


✨ NAME ✨

knet_handle_crypto_rx_clear_traffic β€” turn the RX processing of clear (aka unencrypted, aka raw-dogging-the-network) traffic on or off 🫢


🌈 SYNOPSIS 🌈

#include <libknet.h>

int knet_handle_crypto_rx_clear_traffic(
    knet_handle_t  knet_h,
    uint8_t        value
);

she's giving small function, big opinions, and honestly? iconic. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

knet_handle_crypto_rx_clear_traffic

okay so here's the tea, parameter by parameter πŸ“:

  • knet_h β€” pointer to a knet_handle_t. your handle. your main character. πŸ‘‘
  • value β€” this one's the whole personality of the call. you pass either KNET_CRYPTO_RX_ALLOW_CLEAR_TRAFFIC or KNET_CRYPTO_RX_DISALLOW_CLEAR_TRAFFIC, and that's the entire decision. allow the clear traffic in, or ✨ not ✨.

that's it. that's the function. no cap. πŸŽ€


πŸ’œ RETURN VALUE πŸ’œ

so the manpage says β€” and I am quoting this exactly, bestie, we do not editorialize, we do not "fix", we simply relay β€” knet_handle_crypto_use_config returns: πŸ™ˆ

  • 0 β€” on success πŸŽ‰ slay, it worked, we love a zero
  • -1 β€” on error, and errno is set 😭 so go check your errno, it's literally holding the answers

πŸ”₯ SEE ALSO πŸ”₯

the girlies linked here. all 70 of them. we do not skip a single one, that's not how we do things in this house πŸ’…:

like, that's a whole friend group. go read them. iykyk 🧚


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

periodt. πŸ’œ


and that's the whole page, bestie!! 🌈 this little legend came to you from the kronosnet manual, dated 2026-07-20, and the footer is out here doing the exact same name-truncation bit as the header: KNET_HAN...R_TRAFFIC(3). matching set, honestly obsessed πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from