linux/include/net/mld.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef LINUX_MLD_H
#define LINUX_MLD_H

#include <linux/in6.h>
#include <linux/icmpv6.h>

/* MLDv1 Query/Report/Done */
struct mld_msg {};

#define mld_type
#define mld_code
#define mld_cksum
#define mld_maxdelay
#define mld_reserved

/* Multicast Listener Discovery version 2 headers */
/* MLDv2 Report */
struct mld2_grec {};

struct mld2_report {};

#define mld2r_type
#define mld2r_resv1
#define mld2r_cksum
#define mld2r_resv2
#define mld2r_ngrec

/* MLDv2 Query */
struct mld2_query {};

#define mld2q_type
#define mld2q_code
#define mld2q_cksum
#define mld2q_mrc
#define mld2q_resv1

/* RFC3810, 5.1.3. Maximum Response Code:
 *
 * If Maximum Response Code >= 32768, Maximum Response Code represents a
 * floating-point value as follows:
 *
 *  0 1 2 3 4 5 6 7 8 9 A B C D E F
 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 * |1| exp |          mant         |
 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 */
#define MLDV2_MRC_EXP(value)
#define MLDV2_MRC_MAN(value)

/* RFC3810, 5.1.9. QQIC (Querier's Query Interval Code):
 *
 * If QQIC >= 128, QQIC represents a floating-point value as follows:
 *
 *  0 1 2 3 4 5 6 7
 * +-+-+-+-+-+-+-+-+
 * |1| exp | mant  |
 * +-+-+-+-+-+-+-+-+
 */
#define MLDV2_QQIC_EXP(value)
#define MLDV2_QQIC_MAN(value)

#define MLD_EXP_MIN_LIMIT
#define MLDV1_MRD_MAX_COMPAT

#define MLD_MAX_QUEUE
#define MLD_MAX_SKBS

static inline unsigned long mldv2_mrc(const struct mld2_query *mlh2)
{}

#endif