Commit d2ba008b authored by Ibe Van de Veire's avatar Ibe Van de Veire Committed by Henrik Brix Andersen
Browse files

net: ip: igmp: Add igmp.h for definitions

Add igmp.h file to declare definitions for IGMP that are not meant te be
included by the application but can be used in e.g. tests.

Signed-off-by: default avatarIbe Van de Veire <ibe.vandeveire@basalte.be>
(cherry picked from commit ba9eca31)
parent 8e2419fc
Loading
Loading
Loading
Loading
+1 −7
Changes for subsys/net/ip/igmp.c: 1 added line, 7 removed lines.
Original line number Diff line number Diff line
@@ -22,19 +22,13 @@ LOG_MODULE_DECLARE(net_ipv4, CONFIG_NET_IPV4_LOG_LEVEL);
#include "connection.h"
#include "ipv4.h"
#include "net_stats.h"
#include "igmp.h"

/* Timeout for various buffer allocations in this file. */
#define PKT_WAIT_TIME K_MSEC(50)

#define IPV4_OPT_HDR_ROUTER_ALERT_LEN 4

#define IGMPV3_MODE_IS_INCLUDE        0x01
#define IGMPV3_MODE_IS_EXCLUDE        0x02
#define IGMPV3_CHANGE_TO_INCLUDE_MODE 0x03
#define IGMPV3_CHANGE_TO_EXCLUDE_MODE 0x04
#define IGMPV3_ALLOW_NEW_SOURCES      0x05
#define IGMPV3_BLOCK_OLD_SOURCES      0x06

#define IGMPV2_PAYLOAD_MIN_LEN 8
#define IGMPV3_PAYLOAD_MIN_LEN 12

subsys/net/ip/igmp.h

0 → 100644
+23 −0
Changes for subsys/net/ip/igmp.h: 23 added lines, 0 removed lines.
Original line number Diff line number Diff line
/**
 * @file
 * @brief IGMP definitions
 * This is not to be included by the application.
 */

/*
 * Copyright (c) 2024 Basalte bv
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#ifndef __IGMP_H
#define __IGMP_H

#define IGMPV3_MODE_IS_INCLUDE        0x01
#define IGMPV3_MODE_IS_EXCLUDE        0x02
#define IGMPV3_CHANGE_TO_INCLUDE_MODE 0x03
#define IGMPV3_CHANGE_TO_EXCLUDE_MODE 0x04
#define IGMPV3_ALLOW_NEW_SOURCES      0x05
#define IGMPV3_BLOCK_OLD_SOURCES      0x06

#endif /* __IGMP_H */