mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Add isc_netaddr_ismulticast() and isc_sockaddr_ismulticast()
This commit is contained in:
@@ -378,3 +378,11 @@ isc_sockaddr_getport(isc_sockaddr_t *sockaddr) {
|
||||
|
||||
return (port);
|
||||
}
|
||||
|
||||
isc_boolean_t
|
||||
isc_sockaddr_ismulticast(isc_sockaddr_t *sockaddr) {
|
||||
isc_netaddr_t netaddr;
|
||||
|
||||
isc_netaddr_fromsockaddr(&netaddr, sockaddr);
|
||||
return (isc_netaddr_ismulticast(&netaddr));
|
||||
}
|
||||
|
Reference in New Issue
Block a user