mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
eliminate isc/inet.h
This commit is contained in:
parent
c5bbf59219
commit
22abc74843
@ -23,17 +23,13 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include <sys/socket.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
#include <arpa/inet.h>
|
|
||||||
|
|
||||||
#include <isc/assertions.h>
|
#include <isc/assertions.h>
|
||||||
#include <isc/error.h>
|
#include <isc/error.h>
|
||||||
#include <isc/mem.h>
|
#include <isc/mem.h>
|
||||||
#include <isc/result.h>
|
#include <isc/result.h>
|
||||||
#include <isc/socket.h>
|
#include <isc/socket.h>
|
||||||
#include <isc/types.h>
|
#include <isc/types.h>
|
||||||
#include <isc/inet.h>
|
#include <isc/net.h>
|
||||||
#include <isc/interfaceiter.h>
|
#include <isc/interfaceiter.h>
|
||||||
|
|
||||||
#include "interfacemgr.h"
|
#include "interfacemgr.h"
|
||||||
@ -287,9 +283,9 @@ ns_interfacemgr_scan(ns_interfacemgr_t *mgr) {
|
|||||||
char buf[128];
|
char buf[128];
|
||||||
const char *addrstr;
|
const char *addrstr;
|
||||||
/* XXX IPv6 */
|
/* XXX IPv6 */
|
||||||
addrstr = isc_inet_ntop(listen_addr.type.sin.sin_family,
|
addrstr = inet_ntop(listen_addr.type.sin.sin_family,
|
||||||
&listen_addr.type.sin.sin_addr,
|
&listen_addr.type.sin.sin_addr,
|
||||||
buf, sizeof(buf));
|
buf, sizeof(buf));
|
||||||
if (addrstr == NULL)
|
if (addrstr == NULL)
|
||||||
addrstr = "(bad address)";
|
addrstr = "(bad address)";
|
||||||
printf("listening on %s (%s port %d)\n",
|
printf("listening on %s (%s port %d)\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user