Add RTC_EXPORT for rtc::IPIsLinkLocal and rtc::IPIsLoopback

Required to allow private IPv6 addresses in Chromium:
https://crrev.com/c/5258983

Bug: chromium:323820219
Change-Id: I25fc931f00feda9bfa2f3b92317b4b4b064f6f69
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/337600
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41664}
This commit is contained in:
Artem Titov 2024-02-02 17:51:26 +01:00 committed by WebRTC LUCI CQ
parent bda5cc63ce
commit 35fe95802d

View file

@ -162,8 +162,8 @@ RTC_EXPORT bool IPFromString(absl::string_view str,
int flags,
InterfaceAddress* out);
bool IPIsAny(const IPAddress& ip);
bool IPIsLoopback(const IPAddress& ip);
bool IPIsLinkLocal(const IPAddress& ip);
RTC_EXPORT bool IPIsLoopback(const IPAddress& ip);
RTC_EXPORT bool IPIsLinkLocal(const IPAddress& ip);
// Identify a private network address like "192.168.111.222"
// (see https://en.wikipedia.org/wiki/Private_network )
bool IPIsPrivateNetwork(const IPAddress& ip);