IP_NODEFRAG(2const)
π IP_NODEFRAG(2const) π
okay bestie, so this is the manual page for IP_NODEFRAG, which is giving "pls don't glue my outgoing packets back together" energy. it lives in the Linux man-pages 6.20 collection, dated 2025-11-25, and honestly? it's a tiny page but it's a whole vibe. let's get into it. π¦
π LIBRARY
Standard C library (libc, -lc). yeah she's a libc girlie, no cap. πΈ
β¨ SYNOPSIS
like, here's how you actually summon her:
#include <netinet/in.h> /* Definition of IP* constants */
#include <sys/socket.h>
int setsockopt(int sockfd, IPPROTO_IP, IP_NODEFRAG,
const int *val, sizeof(int));
okay so you're calling setsockopt() with IPPROTO_IP as the level, IP_NODEFRAG as the option name, a pointer to your int called val, and sizeof(int) as the length. that's the whole summon ritual. π
π DESCRIPTION
so here's the tea. if val is nonzero, then the reassembly of outgoing packets gets disabled in the netfilter layer. like, netfilter was gonna try to reassemble your fragments before they leave, and you're just like "no thank you, i'm built different." π«Ά
β οΈ real talk though: this option is valid only for SOCK_RAW sockets. so if you're not on a raw socket, this is not your moment. periodt.
π ERRORS
bestie, this page isn't gonna spell it out for you β it's pointing you at the receipts:
- See
IPPROTO_IP(2const). - See
setsockopt(2). - See
ip(7).
that's it. that's the error section. she's concise. iconic behavior ngl. β¨
π HISTORY
Linux 2.6.36. so she's been around a minute β lowkey vintage, highkey still relevant. π
π SEE ALSO
the squad, fr fr:
π so yeah β that'sIP_NODEFRAG. no reassembly for outgoing packets when val is nonzero,SOCK_RAWonly, and that's the whole thing. go slay your raw sockets, bestie. π§
Linux man-pages 6.20 Β· 2025-11-25 β mwah, that's the version and the date, catch you on the flip side π π
π¦ where this page comes from
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- π the page's license: Linux-man-pages-copyleft
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms