IP_RECVOPTS(2const)

πŸ“¦
version 6.20 Β· 4 versions
, in arch rolling, nixpkgs unstable

πŸ’– 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:


πŸ‘‘ 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