IPV6_MULTICAST_HOPS(2const)

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

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

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