2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 22:35:25 +00:00

socklen_t -> SOCKLEN_T

This commit is contained in:
Ted Lemon
2000-02-03 03:43:51 +00:00
parent 6326bebfc0
commit d1f313b300
6 changed files with 13 additions and 13 deletions

View File

@@ -22,7 +22,7 @@
#ifndef lint #ifndef lint
static char copyright[] = static char copyright[] =
"$Id: dns.c,v 1.15 2000/02/01 03:19:38 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; "$Id: dns.c,v 1.16 2000/02/03 03:43:51 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */ #endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
@@ -444,7 +444,7 @@ void dns_packet (protocol)
u_int16_t class; u_int16_t class;
TIME ttl; TIME ttl;
u_int16_t rdlength; u_int16_t rdlength;
socklen_t len; SOCKLEN_T len;
int status; int status;
int i; int i;
struct dns_query *query; struct dns_query *query;

View File

@@ -23,7 +23,7 @@
#ifndef lint #ifndef lint
static char copyright[] = static char copyright[] =
"$Id: icmp.c,v 1.20 2000/02/01 18:25:07 mellon Exp $ Copyright (c) 1997, 1998 The Internet Software Consortium. All rights reserved.\n"; "$Id: icmp.c,v 1.21 2000/02/03 03:43:51 mellon Exp $ Copyright (c) 1997, 1998 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */ #endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
@@ -163,7 +163,7 @@ isc_result_t icmp_echoreply (h)
struct sockaddr_in from; struct sockaddr_in from;
unsigned char icbuf [1500]; unsigned char icbuf [1500];
int status; int status;
socklen_t sl; SOCKLEN_T sl;
int hlen, len; int hlen, len;
struct iaddr ia; struct iaddr ia;
struct icmp_state *state; struct icmp_state *state;

View File

@@ -30,7 +30,7 @@
#ifndef lint #ifndef lint
static char copyright[] = static char copyright[] =
"$Id: socket.c,v 1.44 2000/02/01 03:19:39 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; "$Id: socket.c,v 1.45 2000/02/03 03:43:51 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */ #endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
@@ -213,7 +213,7 @@ ssize_t receive_packet (interface, buf, len, from, hfrom)
struct sockaddr_in *from; struct sockaddr_in *from;
struct hardware *hfrom; struct hardware *hfrom;
{ {
socklen_t flen = sizeof *from; SOCKLEN_T flen = sizeof *from;
int result; int result;
#ifdef IGNORE_HOSTUNREACH #ifdef IGNORE_HOSTUNREACH
@@ -240,7 +240,7 @@ isc_result_t fallback_discard (object)
{ {
char buf [1540]; char buf [1540];
struct sockaddr_in from; struct sockaddr_in from;
socklen_t flen = sizeof from; SOCKLEN_T flen = sizeof from;
int status; int status;
struct interface_info *interface; struct interface_info *interface;

View File

@@ -70,7 +70,7 @@
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static const char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93"; static const char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93";
static const char rcsid[] = "$Id: res_send.c,v 1.2 2000/02/02 19:59:16 mellon Exp $"; static const char rcsid[] = "$Id: res_send.c,v 1.3 2000/02/03 03:43:50 mellon Exp $";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
/* /*
@@ -312,7 +312,7 @@ res_nsend(res_state statp,
if (statp->_sock >= 0 && if (statp->_sock >= 0 &&
(statp->_flags & RES_F_VC) != 0) { (statp->_flags & RES_F_VC) != 0) {
struct sockaddr_in peer; struct sockaddr_in peer;
socklen_t size = sizeof(peer); SOCKLEN_T size = sizeof(peer);
if (getpeername(statp->_sock, if (getpeername(statp->_sock,
(struct sockaddr *)&peer, (struct sockaddr *)&peer,
@@ -478,7 +478,7 @@ res_nsend(res_state statp,
int start, timeout, finish; int start, timeout, finish;
fd_set dsmask; fd_set dsmask;
struct sockaddr_in from; struct sockaddr_in from;
socklen_t fromlen; SOCKLEN_T fromlen;
int seconds; int seconds;
if (statp->_sock < 0 || if (statp->_sock < 0 ||
@@ -558,7 +558,7 @@ res_nsend(res_state statp,
sizeof no_addr); sizeof no_addr);
#else #else
struct sockaddr_in local_addr; struct sockaddr_in local_addr;
socklen_t len; SOCKLEN_T len;
int result, s1; int result, s1;
len = sizeof(local_addr); len = sizeof(local_addr);

View File

@@ -32,7 +32,7 @@ isc_result_t omapi_connect (omapi_object_t *c,
isc_result_t status; isc_result_t status;
omapi_connection_object_t *obj; omapi_connection_object_t *obj;
int flag; int flag;
socklen_t sl; SOCKLEN_T sl;
obj = (omapi_connection_object_t *)dmalloc (sizeof *obj, MDL); obj = (omapi_connection_object_t *)dmalloc (sizeof *obj, MDL);
if (!obj) if (!obj)

View File

@@ -125,7 +125,7 @@ int omapi_listener_readfd (omapi_object_t *h)
isc_result_t omapi_accept (omapi_object_t *h) isc_result_t omapi_accept (omapi_object_t *h)
{ {
isc_result_t status; isc_result_t status;
socklen_t len; SOCKLEN_T len;
omapi_connection_object_t *obj; omapi_connection_object_t *obj;
omapi_listener_object_t *listener; omapi_listener_object_t *listener;