IPV6_ADD_MEMBERSHIP(2const)

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

πŸ’– IPV6_ADD_MEMBERSHIP β€” the bestie edition πŸ’–

okay so bestie, you're holding IPV6_ADD_MEMBERSHIP(2const), aka the "hey friends, I'm joining the multicast party" page. Two constants, one job: getting you into a multicast group, and getting you tf out. let's go πŸ¦‹


✨ NAME ✨

IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP β€” join or leave a multicast group πŸ’…


πŸ“š LIBRARY πŸ“š

Standard C library (libc, -lc) πŸŽ€


🌸 SYNOPSIS 🌸

#include <netinet/in.h>  /* Definition of IP* constants */
#include <sys/socket.h>

int setsockopt(int sockfd, IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP,
               const struct ipv6_mreq *val, sizeof(struct ipv6_mreq));
int setsockopt(int sockfd, IPPROTO_IPV6, IPV6_DROP_MEMBERSHIP,
               const struct ipv6_mreq *val, sizeof(struct ipv6_mreq));

like, both of them are literally the same setsockopt(2) call, the only glow-up is which constant you pass in. IPV6_ADD_MEMBERSHIP = you're in. IPV6_DROP_MEMBERSHIP = you're out, no hard feelings 😌


🫢 DESCRIPTION 🫢

Join or leave a multicast group. that's it, that's the vibe ✨

See IP_ADD_MULTICAST(2const) and IP_DROP_MULTICAST(2const). πŸ‘‘


😭 ERRORS 😭

See IPPROTO_IPV6(2const). See setsockopt(2). See ipv6(7). (yes bestie, all three, go read them, they're giving main character energy πŸ”₯)


πŸ‘€ SEE ALSO πŸ‘€


no cap, every single flag, constant and cross-reference above is exactly where it was β€” I just gave it a lil lip gloss πŸ’„

okay byeeee, go join your multicast group, you're gonna slay πŸ§šβ€β™€οΈβœ¨

this was Linux man-pages 6.20, dated 2025-12-02, and it's literally the IPV6_ADD_MEMBERSHIP(2const) page β€” periodt πŸ’…πŸ’–

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