MCPcopy Create free account
hub / github.com/apache/trafficserver / ats_is_ip_multicast

Function ats_is_ip_multicast

include/tscore/ink_inet.h:721–726  ·  view source on GitHub ↗

Check for multicast. @return @true if @a ip is multicast.

Source from the content-addressed store, hash-verified

719/// Check for multicast.
720/// @return @true if @a ip is multicast.
721inline bool
722ats_is_ip_multicast(sockaddr const *ip)
723{
724 return ip && ((AF_INET == ip->sa_family && 0xe == (ats_ip_addr8_cast(ip)[0] >> 4)) ||
725 (AF_INET6 == ip->sa_family && IN6_IS_ADDR_MULTICAST(&ats_ip6_addr_cast(ip))));
726}
727/// Check for multicast.
728/// @return @true if @a ip is multicast.
729inline bool

Callers 3

MachineMethod · 0.85
UDPBindMethod · 0.85
ats_ip_getbestaddrinfoFunction · 0.85

Calls 1

ats_ip_addr8_castFunction · 0.85

Tested by

no test coverage detected