KNET_HAN...D_SETFREQ(3)

✨ KNET_HAN...D_SETFREQ(3) ✨

okay bestie, welcome to the Kronosnet Programmer's Manual πŸ’– this one's all about tuning how often your PMTUd scans go brrr. section three, we love her.


πŸŽ€ NAME πŸŽ€

knet_handle_pmtud_setfreq β€” set the interval between PMTUd scans. no cap, that's the whole vibe. ⏰


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <libknet.h>

int knet_handle_pmtud_setfreq(
    knet_handle_t  knet_h,
    unsigned int   interval
);

she's giving four lines of pure C realness, periodt.


🌸 DESCRIPTION 🌸

so like, knet_handle_pmtud_setfreq is the function, and here's the tea on her arguments πŸ“:

  • knet_h β€” pointer to knet_handle_t. your handle, your girl, your main character. πŸ‘‘
  • interval β€” define the interval in seconds between PMTUd scans. range from 1 to 86400 (24h). like, a whole day is the max, bestie, we're not doing infinity here 😭

the default interval is 60. yes, one whole minute, iconic behavior honestly. πŸ’…


πŸ’œ RETURN VALUE πŸ’œ

knet_handle_pmtud_setfreq returns 0 on success, -1 on error, and errno is set. so like, if you see that -1, check errno, she's trying to tell you something. πŸ™ˆ


🌈 SEE ALSO 🌈

the whole friend group, fr fr β€” every single one of them:

go read them all, iykyk πŸ“šβœ¨


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


and that's the whole page bestie!! 🫢 this was kronosnet, dated 2026-07-20, and yeah the footer says it's the KNET_HAN...D_SETFREQ(3) page, so like, we been knew. go forth and scan those PMTUs responsibly πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from