bneradt commented on code in PR #14072:
URL: https://github.com/apache/trafficserver/pull/14072#discussion_r4568125470
##########
lib/swoc/include/swoc/swoc_ip_util.h:
##########
@@ -93,12 +93,12 @@ inline bool is_loopback_network_order(in_addr_t addr) {
return is_loopback_host_order(addr);
}
-inline bool is_link_local_network_order(inaddr_t addr) {
+inline bool is_link_local_network_order(in_addr_t addr) {
return is_link_local_host_order(addr);
}
inline bool is_private_network_order(in_addr_t addr) {
- return is_link_local_host_order(addr);
+ return is_private_host_order(addr);
Review Comment:
Good catch. This one is a silent behavior bug rather than a build break:
once the typo above is fixed, BE builds would have reported only 169.254/16 as
private and missed 10/8, 100.64/10, 172.16/12 and 192.168/16. Worth calling out
in the commit message since it changes `is_private()` results on BE.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]