From b0361f14c164c9286295b2cdc96fca1a835895dc Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Sat, 27 Nov 2021 20:13:27 +0100 Subject: [PATCH] netif: Add documentation for mac filter macros --- src/include/lwip/netif.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/include/lwip/netif.h b/src/include/lwip/netif.h index 6e04ce84..0cde2c2a 100644 --- a/src/include/lwip/netif.h +++ b/src/include/lwip/netif.h @@ -502,14 +502,18 @@ void netif_set_link_callback(struct netif *netif, netif_status_callback_fn link_ #endif /* LWIP_NETIF_HOSTNAME */ #if LWIP_IGMP -/** @ingroup netif */ +/** @ingroup netif + * Set igmp mac filter function for a netif. */ #define netif_set_igmp_mac_filter(netif, function) do { if((netif) != NULL) { (netif)->igmp_mac_filter = function; }}while(0) +/** Get the igmp mac filter function for a netif. */ #define netif_get_igmp_mac_filter(netif) (((netif) != NULL) ? ((netif)->igmp_mac_filter) : NULL) #endif /* LWIP_IGMP */ #if LWIP_IPV6 && LWIP_IPV6_MLD -/** @ingroup netif */ +/** @ingroup netif + * Set mld mac filter function for a netif. */ #define netif_set_mld_mac_filter(netif, function) do { if((netif) != NULL) { (netif)->mld_mac_filter = function; }}while(0) +/** Get the mld mac filter function for a netif. */ #define netif_get_mld_mac_filter(netif) (((netif) != NULL) ? ((netif)->mld_mac_filter) : NULL) #define netif_mld_mac_filter(netif, addr, action) do { if((netif) && (netif)->mld_mac_filter) { (netif)->mld_mac_filter((netif), (addr), (action)); }}while(0) #endif /* LWIP_IPV6 && LWIP_IPV6_MLD */