2
0
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:
Michael Graff
2000-06-15 18:23:54 +00:00
parent d2e9c94edb
commit d80da258e3
6 changed files with 53 additions and 2 deletions

View File

@@ -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));
}