full_ipadr.c (505d05c7) | full_ipadr.c (159d09a2) |
---|---|
1#pragma ident "%Z%%M% %I% %E% SMI" | |
2/* 3 * lib/krb5/os/full_ipadr.c 4 * 5 * Copyright 1991 by the Massachusetts Institute of Technology. 6 * All Rights Reserved. 7 * 8 * Export of this software from the United States of America may 9 * require a specific license from the United States Government. --- 13 unchanged lines hidden (view full) --- 23 * M.I.T. makes no representations about the suitability of 24 * this software for any purpose. It is provided "as is" without express 25 * or implied warranty. 26 * 27 * 28 * Take an IP addr & port and generate a full IP address. 29 */ 30 | 1/* 2 * lib/krb5/os/full_ipadr.c 3 * 4 * Copyright 1991 by the Massachusetts Institute of Technology. 5 * All Rights Reserved. 6 * 7 * Export of this software from the United States of America may 8 * require a specific license from the United States Government. --- 13 unchanged lines hidden (view full) --- 22 * M.I.T. makes no representations about the suitability of 23 * this software for any purpose. It is provided "as is" without express 24 * or implied warranty. 25 * 26 * 27 * Take an IP addr & port and generate a full IP address. 28 */ 29 |
31#define NEED_SOCKETS 32#include <k5-int.h> | 30#include "k5-int.h" |
33 34#ifdef HAVE_NETINET_IN_H 35 36#include "os-proto.h" 37 38krb5_error_code | 31 32#ifdef HAVE_NETINET_IN_H 33 34#include "os-proto.h" 35 36krb5_error_code |
39krb5_make_full_ipaddr(krb5_context context, krb5_int32 adr, | 37krb5_make_full_ipaddr(krb5_context context, krb5_int32 adr, |
40 /*krb5_int16*/int port, krb5_address **outaddr) 41{ 42 unsigned long smushaddr = (unsigned long) adr; /* already in net order */ 43 unsigned short smushport = (unsigned short) port; /* ditto */ 44 register krb5_address *retaddr; 45 register krb5_octet *marshal; 46 krb5_addrtype temptype; 47 krb5_int32 templength; --- 41 unchanged lines hidden --- | 38 /*krb5_int16*/int port, krb5_address **outaddr) 39{ 40 unsigned long smushaddr = (unsigned long) adr; /* already in net order */ 41 unsigned short smushport = (unsigned short) port; /* ditto */ 42 register krb5_address *retaddr; 43 register krb5_octet *marshal; 44 krb5_addrtype temptype; 45 krb5_int32 templength; --- 41 unchanged lines hidden --- |