2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 21:47:59 +00:00

Use in_port_t instead of short.

This commit is contained in:
James Brister 2000-01-06 16:15:29 +00:00
parent 0bd4e3591a
commit ce38a4c8d0
5 changed files with 10 additions and 10 deletions

View File

@ -112,7 +112,7 @@ dns_c_ctrllist_delete(dns_c_ctrllist_t **list)
isc_result_t isc_result_t
dns_c_ctrlinet_new(isc_mem_t *mem, dns_c_ctrl_t **control, dns_c_ctrlinet_new(isc_mem_t *mem, dns_c_ctrl_t **control,
isc_sockaddr_t addr, short port, isc_sockaddr_t addr, in_port_t port,
dns_c_ipmatchlist_t *iml, isc_boolean_t copy) dns_c_ipmatchlist_t *iml, isc_boolean_t copy)
{ {
dns_c_ctrl_t *ctrl; dns_c_ctrl_t *ctrl;
@ -229,7 +229,7 @@ dns_c_ctrl_delete(dns_c_ctrl_t **control)
void void
dns_c_ctrl_print(FILE *fp, int indent, dns_c_ctrl_t *ctl) dns_c_ctrl_print(FILE *fp, int indent, dns_c_ctrl_t *ctl)
{ {
short port; in_port_t port;
dns_c_ipmatchlist_t *iml; dns_c_ipmatchlist_t *iml;
REQUIRE(DNS_C_CONFCTL_VALID(ctl)); REQUIRE(DNS_C_CONFCTL_VALID(ctl));

View File

@ -1622,7 +1622,7 @@ dns_c_ctx_setquerysourceaddr(dns_c_ctx_t *cfg, isc_sockaddr_t addr)
isc_result_t isc_result_t
dns_c_ctx_setquerysourceport(dns_c_ctx_t *cfg, short port) dns_c_ctx_setquerysourceport(dns_c_ctx_t *cfg, in_port_t port)
{ {
isc_boolean_t existed; isc_boolean_t existed;
isc_result_t res; isc_result_t res;
@ -2846,7 +2846,7 @@ dns_c_ctx_getquerysourceaddr(dns_c_ctx_t *cfg, isc_sockaddr_t *addr)
isc_result_t isc_result_t
dns_c_ctx_getquerysourceport(dns_c_ctx_t *cfg, short *port) dns_c_ctx_getquerysourceport(dns_c_ctx_t *cfg, in_port_t *port)
{ {
REQUIRE(DNS_C_CONFCTX_VALID(cfg)); REQUIRE(DNS_C_CONFCTX_VALID(cfg));

View File

@ -91,7 +91,7 @@ struct dns_c_ctrl
union { union {
struct { struct {
isc_sockaddr_t addr; isc_sockaddr_t addr;
short port; in_port_t port;
dns_c_ipmatchlist_t *matchlist; dns_c_ipmatchlist_t *matchlist;
} inet_v; /* when control_type == dns_c_inet_control */ } inet_v; /* when control_type == dns_c_inet_control */
struct { struct {
@ -122,7 +122,7 @@ struct dns_c_ctrl_list
isc_result_t dns_c_ctrlinet_new(isc_mem_t *mem, dns_c_ctrl_t **control, isc_result_t dns_c_ctrlinet_new(isc_mem_t *mem, dns_c_ctrl_t **control,
isc_sockaddr_t addr, short port, isc_sockaddr_t addr, in_port_t port,
dns_c_ipmatchlist_t *iml, dns_c_ipmatchlist_t *iml,
isc_boolean_t copy); isc_boolean_t copy);
/* /*

View File

@ -178,7 +178,7 @@ struct dns_c_options
isc_boolean_t rfc2308_type1; isc_boolean_t rfc2308_type1;
isc_sockaddr_t query_source_addr; isc_sockaddr_t query_source_addr;
short query_source_port; in_port_t query_source_port;
dns_c_severity_t check_names[DNS_C_TRANSCOUNT]; dns_c_severity_t check_names[DNS_C_TRANSCOUNT];
@ -358,7 +358,7 @@ isc_result_t dns_c_ctx_setrfc2308type1(dns_c_ctx_t *cfg,
isc_result_t dns_c_ctx_setdialup(dns_c_ctx_t *cfg, isc_boolean_t newval); isc_result_t dns_c_ctx_setdialup(dns_c_ctx_t *cfg, isc_boolean_t newval);
isc_result_t dns_c_ctx_setquerysourceaddr(dns_c_ctx_t *cfg, isc_result_t dns_c_ctx_setquerysourceaddr(dns_c_ctx_t *cfg,
isc_sockaddr_t addr); isc_sockaddr_t addr);
isc_result_t dns_c_ctx_setquerysourceport(dns_c_ctx_t *cfg, short port); isc_result_t dns_c_ctx_setquerysourceport(dns_c_ctx_t *cfg, in_port_t port);
isc_result_t dns_c_ctx_setchecknames(dns_c_ctx_t *cfg, isc_result_t dns_c_ctx_setchecknames(dns_c_ctx_t *cfg,
dns_c_trans_t transtype, dns_c_trans_t transtype,
dns_c_severity_t sever); dns_c_severity_t sever);
@ -487,7 +487,7 @@ isc_result_t dns_c_ctx_getdialup(dns_c_ctx_t *cfg, isc_boolean_t *retval);
isc_result_t dns_c_ctx_getquerysourceaddr(dns_c_ctx_t *cfg, isc_result_t dns_c_ctx_getquerysourceaddr(dns_c_ctx_t *cfg,
isc_sockaddr_t *addr); isc_sockaddr_t *addr);
isc_result_t dns_c_ctx_getquerysourceport(dns_c_ctx_t *cfg, isc_result_t dns_c_ctx_getquerysourceport(dns_c_ctx_t *cfg,
short *port); in_port_t *port);
isc_result_t dns_c_ctx_getchecknames(dns_c_ctx_t *cfg, isc_result_t dns_c_ctx_getchecknames(dns_c_ctx_t *cfg,
dns_c_trans_t transtype, dns_c_trans_t transtype,
dns_c_severity_t *sever); dns_c_severity_t *sever);

View File

@ -84,7 +84,7 @@ struct dns_c_lstn_on
isc_mem_t *mem; isc_mem_t *mem;
isc_uint32_t magic; isc_uint32_t magic;
short port; in_port_t port;
dns_c_ipmatchlist_t *iml; dns_c_ipmatchlist_t *iml;
ISC_LINK(dns_c_lstnon_t) next; ISC_LINK(dns_c_lstnon_t) next;