1
0
Fork 0

generated IP addresses are static

This commit is contained in:
Kevin Matz 2022-11-30 09:53:08 -05:00
parent 79ed3e5a8b
commit d4c0665330
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ using ip_addr_spec = ACN::SDT::ip_addr_spec;
* > Multicast addresses are from the IPv4 Local Scope and will be managed by * > Multicast addresses are from the IPv4 Local Scope and will be managed by
* > routers in conformance with RFC 2365 \cite ASIPM. * > routers in conformance with RFC 2365 \cite ASIPM.
*/ */
static inline ipAddress IPv4MulticastAddress(universe_number universe) { static inline const ipAddress IPv4MulticastAddress(universe_number universe) {
ipAddress addr; ipAddress addr;
addr.type = ACN::SDT::SDT_ADDR_IPV4; addr.type = ACN::SDT::SDT_ADDR_IPV4;
addr.address.ipv4.bytes[3] = 239; addr.address.ipv4.bytes[3] = 239;
@ -141,7 +141,7 @@ static inline ipAddress IPv4MulticastAddress(universe_number universe) {
* @param universe * @param universe
* @return * @return
*/ */
static inline ipAddress IPv6MulticastAddress(universe_number universe) { static inline const ipAddress IPv6MulticastAddress(universe_number universe) {
ipAddress addr; ipAddress addr;
addr.type = ACN::SDT::SDT_ADDR_IPV6; addr.type = ACN::SDT::SDT_ADDR_IPV6;
addr.address.ipv6.group[3] = 131; addr.address.ipv6.group[3] = 131;