IP_MULTICAST_LOOP(2const)

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

✨ IP_MULTICAST_LOOP ✨

okay bestie, welcome to the IP_MULTICAST_LOOP page πŸ’– this is one of the <const> pages β€” which is just a fancy way of saying "this is one option among many, and it lives inside the big IPPROTO_IP(2const) family." she's in section 2, she's about sockets, she's lowkey iconic. let's get into it πŸ¦‹


🌸 NAME 🌸

IP_MULTICAST_LOOP β€” loop back sent multicast packets to local sockets

πŸ“š 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_MULTICAST_LOOP,
               const int *enable, sizeof(int));
int getsockopt(int sockfd, IPPROTO_IP, IP_MULTICAST_LOOP,
               int *enabled, sizeof(int));

πŸ’« DESCRIPTION πŸ’«

okay so picture this: you're sending multicast packets out into the world, and then β€” plot twist β€” should those same packets come right back around and land on the local sockets too? πŸ‘€

That's literally the whole job of IP_MULTICAST_LOOP. She sets or reads a boolean integer argument that decides whether sent multicast packets should be looped back to the local sockets. bool behavior, no cap πŸŽ€

😭 ERRORS 😭

not me making you go read other pages, but fr fr:

⏳ HISTORY ⏳

Linux 1.2. β€” she's been here since the beginning, a true main character since day one πŸ‘‘

🫢 SEE ALSO 🫢


and that's the whole vibe check, bestie πŸ’œ go forth and loop those packets (or don't, your call, that's kinda the point) ✨

mwah πŸ’… this was brought to you by Linux man-pages 6.20, dated 2025-11-25, and the letter IP_MULTICAST_LOOP πŸŽ€

πŸ“¦ 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