KNET_HANDLE_PMTUD_SET(3)

πŸ’– KNET_HANDLE_PMTUD_SET(3) πŸ’–

okay bestie, welcome to the Kronosnet Programmer's Manual β€” this is the page for knet_handle_pmtud_set, and yes it's as iconic as it sounds πŸ’…


✨ NAME ✨

knet_handle_pmtud_set β€” set the current interface MTU πŸŽ€


✨ SYNOPSIS ✨

#include <libknet.h>

int knet_handle_pmtud_set(
    knet_handle_t  knet_h,
    unsigned int   iface_mtu
);

✨ DESCRIPTION ✨

knet_handle_pmtud_set πŸ¦‹

  • knet_h β€” pointer to knet_handle_t
  • iface_mtu β€” current interface MTU, value 0 to 65535. Setting it to 0 will re-enable automatic MTU discovery. In a setup with multiple interfaces, please specify the lowest MTU between the selected intefaces. knet will automatically adjust this value for all headers overhead and set the correct data_mtu. data_mtu can be retrivied with knet_handle_pmtud_get(3), or applications will receive a pmtud_nofity event if enabled via knet_handle_enable_pmtud_notify(3).
no cap, that 0 thing is the main character move if you just want knet to figure the MTU out for you 🌈

✨ RETURN VALUE ✨

knet_handle_pmtud_set returns 0 on success, -1 on error, and errno is set. πŸ’€


✨ SEE ALSO ✨


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


mwah πŸ’œ that's the whole page, go forth and set your MTUs. this came from the kronosnet manual, dated 2026-07-20 β€” and yeah, it's KNET_HANDLE_PMTUD_SET(3), periodt πŸ’…βœ¨

πŸ“¦ where this page comes from