From 81ba6534fdbab43cfdf3c4f77dfaf4c0884fc438 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Sat, 26 Jul 2025 07:00:15 +0100 Subject: [PATCH] - declared multicastAddress parameter in Ethernet_addMulticastAddress const (LIB61850-517) --- hal/ethernet/bsd/ethernet_bsd.c | 2 +- hal/ethernet/linux/ethernet_linux.c | 2 +- hal/ethernet/win32/ethernet_win32.c | 2 +- hal/inc/hal_ethernet.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hal/ethernet/bsd/ethernet_bsd.c b/hal/ethernet/bsd/ethernet_bsd.c index 355110df..f0c67cb7 100644 --- a/hal/ethernet/bsd/ethernet_bsd.c +++ b/hal/ethernet/bsd/ethernet_bsd.c @@ -364,7 +364,7 @@ Ethernet_setMode(EthernetSocket ethSocket, EthernetSocketMode mode) } void -Ethernet_addMulticastAddress(EthernetSocket ethSocket, uint8_t* multicastAddress) +Ethernet_addMulticastAddress(EthernetSocket ethSocket, const uint8_t* multicastAddress) { /* not implemented */ } diff --git a/hal/ethernet/linux/ethernet_linux.c b/hal/ethernet/linux/ethernet_linux.c index bb989600..3c11f1b1 100644 --- a/hal/ethernet/linux/ethernet_linux.c +++ b/hal/ethernet/linux/ethernet_linux.c @@ -270,7 +270,7 @@ Ethernet_setMode(EthernetSocket self, EthernetSocketMode mode) } void -Ethernet_addMulticastAddress(EthernetSocket self, uint8_t* multicastAddress) +Ethernet_addMulticastAddress(EthernetSocket self, const uint8_t* multicastAddress) { struct packet_mreq mreq; memset(&mreq, 0, sizeof(struct packet_mreq)); diff --git a/hal/ethernet/win32/ethernet_win32.c b/hal/ethernet/win32/ethernet_win32.c index 06138da2..0804e636 100644 --- a/hal/ethernet/win32/ethernet_win32.c +++ b/hal/ethernet/win32/ethernet_win32.c @@ -385,7 +385,7 @@ Ethernet_setMode(EthernetSocket ethSocket, EthernetSocketMode mode) } void -Ethernet_addMulticastAddress(EthernetSocket ethSocket, uint8_t* multicastAddress) +Ethernet_addMulticastAddress(EthernetSocket ethSocket, const uint8_t* multicastAddress) { /* not implemented */ } diff --git a/hal/inc/hal_ethernet.h b/hal/inc/hal_ethernet.h index d7e3d207..0f17dd6d 100644 --- a/hal/inc/hal_ethernet.h +++ b/hal/inc/hal_ethernet.h @@ -145,7 +145,7 @@ Ethernet_setMode(EthernetSocket ethSocket, EthernetSocketMode mode); * \param multicastAddress the multicast Ethernet address (this has to be a byte buffer of at least 6 byte) */ PAL_API void -Ethernet_addMulticastAddress(EthernetSocket ethSocket, uint8_t* multicastAddress); +Ethernet_addMulticastAddress(EthernetSocket ethSocket, const uint8_t* multicastAddress); /* * \brief set a protocol filter for the specified etherType