fake-rfc2553.c (124208) | fake-rfc2553.c (126274) |
---|---|
1/* 2 * Copyright (C) 2000-2003 Damien Miller. All rights reserved. 3 * Copyright (C) 1999 WIDE Project. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 23 unchanged lines hidden (view full) --- 32 * 33 * But these functions are not implemented correctly. The minimum subset 34 * is implemented for ssh use only. For example, this routine assumes 35 * that ai_family is AF_INET. Don't use it for another purpose. 36 */ 37 38#include "includes.h" 39 | 1/* 2 * Copyright (C) 2000-2003 Damien Miller. All rights reserved. 3 * Copyright (C) 1999 WIDE Project. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 23 unchanged lines hidden (view full) --- 32 * 33 * But these functions are not implemented correctly. The minimum subset 34 * is implemented for ssh use only. For example, this routine assumes 35 * that ai_family is AF_INET. Don't use it for another purpose. 36 */ 37 38#include "includes.h" 39 |
40RCSID("$Id: fake-rfc2553.c,v 1.4.2.1 2003/09/22 02:09:18 dtucker Exp $"); | 40RCSID("$Id: fake-rfc2553.c,v 1.5 2003/09/22 02:08:23 dtucker Exp $"); |
41 42#ifndef HAVE_GETNAMEINFO 43int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, 44 size_t hostlen, char *serv, size_t servlen, int flags) 45{ 46 struct sockaddr_in *sin = (struct sockaddr_in *)sa; 47 struct hostent *hp; 48 char tmpserv[16]; --- 176 unchanged lines hidden --- | 41 42#ifndef HAVE_GETNAMEINFO 43int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, 44 size_t hostlen, char *serv, size_t servlen, int flags) 45{ 46 struct sockaddr_in *sin = (struct sockaddr_in *)sa; 47 struct hostent *hp; 48 char tmpserv[16]; --- 176 unchanged lines hidden --- |