IP_MULTICAST_LOOP(2const)
β¨ 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:
- See
IPPROTO_IP(2const). - See
setsockopt(2). - See
ip(7).
β³ 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