]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
socklen_t -> SOCKLEN_T
authorTed Lemon <source@isc.org>
Thu, 3 Feb 2000 03:43:51 +0000 (03:43 +0000)
committerTed Lemon <source@isc.org>
Thu, 3 Feb 2000 03:43:51 +0000 (03:43 +0000)
common/dns.c
common/icmp.c
common/socket.c
minires/res_send.c
omapip/connection.c
omapip/listener.c

index ddc917b56d49bc05b9fc2941d2e794ee8aac038e..7423728a09b823be2a51d0e9feb8a18049c9b34e 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 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 */
 
 #include "dhcpd.h"
@@ -444,7 +444,7 @@ void dns_packet (protocol)
        u_int16_t class;
        TIME ttl;
        u_int16_t rdlength;
-       socklen_t len;
+       SOCKLEN_T len;
        int status;
        int i;
        struct dns_query *query;
index c510055ab40198d81563d8f6f08fa9d844a79818..3f55dd1479a1a3307e90e5793003081e387d665b 100644 (file)
@@ -23,7 +23,7 @@
 
 #ifndef lint
 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 */
 
 #include "dhcpd.h"
@@ -163,7 +163,7 @@ isc_result_t icmp_echoreply (h)
        struct sockaddr_in from;
        unsigned char icbuf [1500];
        int status;
-       socklen_t sl;
+       SOCKLEN_T sl;
        int hlen, len;
        struct iaddr ia;
        struct icmp_state *state;
index 9a64677b614e665a07c094068998150f65da5028..72a6da13c1c856495b2ca41c7110604829b3697b 100644 (file)
@@ -30,7 +30,7 @@
 
 #ifndef lint
 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 */
 
 #include "dhcpd.h"
@@ -213,7 +213,7 @@ ssize_t receive_packet (interface, buf, len, from, hfrom)
        struct sockaddr_in *from;
        struct hardware *hfrom;
 {
-       socklen_t flen = sizeof *from;
+       SOCKLEN_T flen = sizeof *from;
        int result;
 
 #ifdef IGNORE_HOSTUNREACH
@@ -240,7 +240,7 @@ isc_result_t fallback_discard (object)
 {
        char buf [1540];
        struct sockaddr_in from;
-       socklen_t flen = sizeof from;
+       SOCKLEN_T flen = sizeof from;
        int status;
        struct interface_info *interface;
 
index 7f3411137b003a622766899862096c955cde63aa..cbfa4914059448fc825d8e57ac155da90fd3c8c6 100644 (file)
@@ -70,7 +70,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 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 */
 
 /*
@@ -312,7 +312,7 @@ res_nsend(res_state statp,
                        if (statp->_sock >= 0 &&
                            (statp->_flags & RES_F_VC) != 0) {
                                struct sockaddr_in peer;
-                               socklen_t size = sizeof(peer);
+                               SOCKLEN_T size = sizeof(peer);
 
                                if (getpeername(statp->_sock,
                                                (struct sockaddr *)&peer,
@@ -478,7 +478,7 @@ res_nsend(res_state statp,
                        int start, timeout, finish;
                        fd_set dsmask;
                        struct sockaddr_in from;
-                       socklen_t fromlen;
+                       SOCKLEN_T fromlen;
                        int seconds;
 
                        if (statp->_sock < 0 ||
@@ -558,7 +558,7 @@ res_nsend(res_state statp,
                                                       sizeof no_addr);
 #else
                                        struct sockaddr_in local_addr;
-                                       socklen_t len;
+                                       SOCKLEN_T len;
                                        int result, s1;
 
                                        len = sizeof(local_addr);
index 71e0b1e3f5a223a1b38a233b021af21960a8fcff..d0fc676222d6d5f696ddc3e0f6e85849aa828c69 100644 (file)
@@ -32,7 +32,7 @@ isc_result_t omapi_connect (omapi_object_t *c,
        isc_result_t status;
        omapi_connection_object_t *obj;
        int flag;
-       socklen_t sl;
+       SOCKLEN_T sl;
 
        obj = (omapi_connection_object_t *)dmalloc (sizeof *obj, MDL);
        if (!obj)
index 9ba5d03f0683f1810e265d849734d0226f0aa6a4..db31d8c7a04798163069fa9744f80d8b338f1a82 100644 (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 status;
-       socklen_t len;
+       SOCKLEN_T len;
        omapi_connection_object_t *obj;
        omapi_listener_object_t *listener;