- declared multicastAddress parameter in Ethernet_addMulticastAddress const (LIB61850-517)

v1.6
Michael Zillgith 1 month ago
parent 6eefcd61df
commit 81ba6534fd

@ -364,7 +364,7 @@ Ethernet_setMode(EthernetSocket ethSocket, EthernetSocketMode mode)
} }
void void
Ethernet_addMulticastAddress(EthernetSocket ethSocket, uint8_t* multicastAddress) Ethernet_addMulticastAddress(EthernetSocket ethSocket, const uint8_t* multicastAddress)
{ {
/* not implemented */ /* not implemented */
} }

@ -270,7 +270,7 @@ Ethernet_setMode(EthernetSocket self, EthernetSocketMode mode)
} }
void void
Ethernet_addMulticastAddress(EthernetSocket self, uint8_t* multicastAddress) Ethernet_addMulticastAddress(EthernetSocket self, const uint8_t* multicastAddress)
{ {
struct packet_mreq mreq; struct packet_mreq mreq;
memset(&mreq, 0, sizeof(struct packet_mreq)); memset(&mreq, 0, sizeof(struct packet_mreq));

@ -385,7 +385,7 @@ Ethernet_setMode(EthernetSocket ethSocket, EthernetSocketMode mode)
} }
void void
Ethernet_addMulticastAddress(EthernetSocket ethSocket, uint8_t* multicastAddress) Ethernet_addMulticastAddress(EthernetSocket ethSocket, const uint8_t* multicastAddress)
{ {
/* not implemented */ /* not implemented */
} }

@ -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) * \param multicastAddress the multicast Ethernet address (this has to be a byte buffer of at least 6 byte)
*/ */
PAL_API void 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 * \brief set a protocol filter for the specified etherType

Loading…
Cancel
Save