ipv6_mc_check_mld(9)
π ipv6_mc_check_mld(9) π
okay bestie, welcome to the Kernel API Manual page for ipv6_mc_check_mld(9) β yes, the title is right there and weβre folding the manual name in near the top like a little name tag π«Ά
β¨ NAME β¨
ipv6_mc_check_mld β checks whether this is a sane MLD packet. Literally a vibe check for MLD packets π
πΈ SYNOPSIS πΈ
int ipv6_mc_check_mld (struct sk_buff *skb );
π ARGUMENTS π
skbβ the skb to validate. This is the packet cutie getting inspected π΅οΈββοΈ
π¦ DESCRIPTION π¦
So this function checks whether an IPv6 packet is a valid MLD packet. If it is, it sets the skb transport header accordingly and returns zero β slay, success, no notes β¨
If somethingβs off, you get one of these error returns:
-EINVALβ a broken packet was detected, i.e. it violates some internet standard. Not iconic behavior π-ENOMSGβ IP header validation succeeded but it is not an ICMPv6 packet with a hop-by-hop option.-ENODATAβ IP+ICMPv6 header with hop-by-hop option validation succeeded but it is not an MLD packet.-ENOMEMβ a memory allocation failure happened. The allocation said βnot todayβ π
Bestie, important caller note: the caller needs to set the skb network header and free any returned skb if it differs from the provided skb. Do not forget, fr fr π«Ά
π SEE ALSO π
Kernel file ./net/ipv6/mcast_snoop.c β go peek if youβre curious π
mwah π this page is from ./net/ipv6, dated October 2026, and itβs serving Kernel API Manual realness. Bye bestie! ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms