IPV6_MULTICAST_HOPS(2const)
π IPV6_MULTICAST_HOPS(2const) π
okay bestie, so this is IPV6_MULTICAST_HOPS(2const) β yes it's a whole manual page for literally just one constant, and yes it still ate π
β¨ NAME β¨
IPV6_MULTICAST_HOPS β the multicast hop limit, no cap π¦
π LIBRARY π
Standard C library (libc, -lc). she's built in, she's free, she's iconic π
π SYNOPSIS π
#include <netinet/in.h> /* Definition of IP* constants */
#include <sys/socket.h>
int setsockopt(int sockfd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS,
const int *val, sizeof(int));
int getsockopt(int sockfd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS,
int *val, sizeof(int));
the way that these two headers are about to be your whole personality for the next hour π
πΈ DESCRIPTION πΈ
So basically you're setting the multicast hop limit for the socket. that's it. that's the whole vibe.
hop limit = how many hops your multicast packet is allowed to take before it just gives up and dies π and lowkey that's a whole mood.
- A value of
-1means use the route default. like, let the routing table be the main character and decide for you π«Ά - Otherwise it should be in the range
[0, 255]. keep it in the box bestie, the box is there for a reason β¨
warning!! the range is [0, 255] β don't go wandering outside it like it's a group chat you weren't added to π
π₯ ERRORS π₯
ngl the error info for this one is a whole β¨delegationβ¨ situation:
- See
IPPROTO_IPV6(2const). - See
setsockopt(2). - See
ipv6(7).
like she said "ask my friends", and honestly? valid. slay π
π HISTORY π
IPV6_MULTICAST_HOPSβPOSIX.1-2001. she's been here since 2001, she's a legacy icon, periodt π
π SEE ALSO π
iykyk, go read these next, they're the rest of the story bestie π
and that's the page! brought to you by Linux man-pages 6.20, dated 2026-01-05 β mwah, love u, read ur man pages πβ¨π¦πΈπ
π¦ 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