IPV6_ADD_MEMBERSHIP(2const)
π 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