IP_RECVOPTS(2const)
π IP_RECVOPTS β bestie edition π
okay so this is IP_RECVOPTS, a member of the IP_RECVOPTS(2const) family, and it's here to let you receive all incoming IP options in a control message. iconic behavior tbh π
β¨ NAME β¨
IP_RECVOPTS β receive all incoming IP options in control message πΈ
π LIBRARY π
Standard C library (libc, -lc) π«Ά
π§ SYNOPSIS π§
#include <netinet/in.h> /* Definition of IP* constants */
#include <sys/socket.h>
int setsockopt(int sockfd, IPPROTO_IP, IP_RECVOPTS,
const int *enable, sizeof(int));
π DESCRIPTION π
So the whole vibe here? You set this option and every incoming IP option gets passed all the way to the user inside an IP_OPTIONS(2const) control message. it's giving "send me everything, I want the receipts" π
The routing header and other options are already filled in for the local host, no cap. so like, that part's done for you, you don't gotta lift a finger π§
π« not supported for SOCK_STREAM sockets. that's the boundary bestie, don't try it there, it's simply not the vibe.
π ERRORS π
no unique error tea here, we're pointing you at the classics:
- See
IPPROTO_IP(2const). - See
setsockopt(2). - See
ip(7).
π HISTORY π
Linux 2.2. β yes she's been around a minute, an elder icon, we stan a legacy queen β¨
π₯ SEE ALSO π₯
and that's the whole page bestie, fr fr π mwah! this one's from Linux man-pages 6.20, dated 2025-11-25 β go forth and receive those options, you absolute main character π¦π
π¦ 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