generated IP addresses are static
This commit is contained in:
parent
79ed3e5a8b
commit
d4c0665330
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue