mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
add isc_sockaddr_v6fromin() and isc_sockaddr_pf()
This commit is contained in:
@@ -48,6 +48,25 @@ void
|
||||
isc_sockaddr_fromin6(isc_sockaddr_t *sockaddr, struct in6_addr *ina6,
|
||||
unsigned int port);
|
||||
|
||||
void
|
||||
isc_sockaddr_v6fromin(isc_sockaddr_t *sockaddr, struct in_addr *ina,
|
||||
unsigned int port);
|
||||
|
||||
int
|
||||
isc_sockaddr_pf(isc_sockaddr_t *sockaddr);
|
||||
/*
|
||||
* Get the protocol family of 'sockaddr'.
|
||||
*
|
||||
* Requires:
|
||||
*
|
||||
* 'sockaddr' is a valid sockaddr with an address family of AF_INET
|
||||
* or AF_INET6.
|
||||
*
|
||||
* Returns:
|
||||
*
|
||||
* The protocol family of 'sockaddr', e.g. PF_INET or PF_INET6.
|
||||
*/
|
||||
|
||||
ISC_LANG_ENDDECLS
|
||||
|
||||
#endif /* ISC_SOCKADDR_H */
|
||||
|
Reference in New Issue
Block a user