gethostbydns.c (65532) | gethostbydns.c (81975) |
---|---|
1/* 2 * ++Copyright++ 1985, 1988, 1993 3 * - 4 * Copyright (c) 1985, 1988, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 42 unchanged lines hidden (view full) --- 51 * SOFTWARE. 52 * - 53 * --Copyright-- 54 */ 55 56#if defined(LIBC_SCCS) && !defined(lint) 57static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93"; 58static char fromrcsid[] = "From: Id: gethnamaddr.c,v 8.23 1998/04/07 04:59:46 vixie Exp $"; | 1/* 2 * ++Copyright++ 1985, 1988, 1993 3 * - 4 * Copyright (c) 1985, 1988, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 42 unchanged lines hidden (view full) --- 51 * SOFTWARE. 52 * - 53 * --Copyright-- 54 */ 55 56#if defined(LIBC_SCCS) && !defined(lint) 57static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93"; 58static char fromrcsid[] = "From: Id: gethnamaddr.c,v 8.23 1998/04/07 04:59:46 vixie Exp $"; |
59static char rcsid[] = "$FreeBSD: head/lib/libc/net/gethostbydns.c 65532 2000-09-06 18:16:48Z nectar $"; | 59static char rcsid[] = "$FreeBSD: head/lib/libc/net/gethostbydns.c 81975 2001-08-20 12:53:36Z kris $"; |
60#endif /* LIBC_SCCS and not lint */ 61 62#include <sys/types.h> 63#include <sys/param.h> 64#include <sys/socket.h> 65#include <netinet/in.h> 66#include <arpa/inet.h> 67#include <arpa/nameser.h> --- 25 unchanged lines hidden (view full) --- 93static char *host_aliases[MAXALIASES]; 94static char hostbuf[8*1024]; 95static u_char host_addr[16]; /* IPv4 or IPv6 */ 96 97#ifdef RESOLVSORT 98static void addrsort __P((char **, int)); 99#endif 100 | 60#endif /* LIBC_SCCS and not lint */ 61 62#include <sys/types.h> 63#include <sys/param.h> 64#include <sys/socket.h> 65#include <netinet/in.h> 66#include <arpa/inet.h> 67#include <arpa/nameser.h> --- 25 unchanged lines hidden (view full) --- 93static char *host_aliases[MAXALIASES]; 94static char hostbuf[8*1024]; 95static u_char host_addr[16]; /* IPv4 or IPv6 */ 96 97#ifdef RESOLVSORT 98static void addrsort __P((char **, int)); 99#endif 100 |
101#ifdef DEBUG 102static void dprintf(char *, int) __printflike(1, 0); 103#endif 104 |
|
101#if PACKETSZ > 1024 102#define MAXPACKET PACKETSZ 103#else 104#define MAXPACKET 1024 105#endif 106 107typedef union { 108 HEADER hdr; --- 687 unchanged lines hidden --- | 105#if PACKETSZ > 1024 106#define MAXPACKET PACKETSZ 107#else 108#define MAXPACKET 1024 109#endif 110 111typedef union { 112 HEADER hdr; --- 687 unchanged lines hidden --- |