Skip to content
Commit 8fb7f8a1 authored by Adam Wojasinski's avatar Adam Wojasinski Committed by Johan Hedberg
Browse files

net: lib: ptp: Fix `PTP_UDP_IPv6_PROTOCOL` compilation error



When the `PTP_UDP_IPv6_PROTOCOL` configuration is enabled
the `mcast_addr` variable is defined as an IPv6 structure, which
doesn't have `s_addr` member.

To not introduce preprocessor guarded code blocks in functions
added union to represent both configurations: IPv4 and IPv6.

Fixes: #92975

Signed-off-by: default avatarAdam Wojasinski <awojasinski@baylibre.com>
parent be2ab1fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment