inet_netof.c (165903) | inet_netof.c (170244) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. 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 --- 17 unchanged lines hidden (view full) --- 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#if defined(LIBC_SCCS) && !defined(lint) 31static const char sccsid[] = "@(#)inet_netof.c 8.1 (Berkeley) 6/4/93"; 32#endif /* LIBC_SCCS and not lint */ 33#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. 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 --- 17 unchanged lines hidden (view full) --- 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#if defined(LIBC_SCCS) && !defined(lint) 31static const char sccsid[] = "@(#)inet_netof.c 8.1 (Berkeley) 6/4/93"; 32#endif /* LIBC_SCCS and not lint */ 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/lib/libc/inet/inet_netof.c 165903 2007-01-09 00:28:16Z imp $"); | 34__FBSDID("$FreeBSD: head/lib/libc/inet/inet_netof.c 170244 2007-06-03 17:20:27Z ume $"); |
35 36#include "port_before.h" 37 38#include <sys/param.h> 39#include <netinet/in.h> 40#include <arpa/inet.h> 41 42#include "port_after.h" 43 | 35 36#include "port_before.h" 37 38#include <sys/param.h> 39#include <netinet/in.h> 40#include <arpa/inet.h> 41 42#include "port_after.h" 43 |
44/* | 44/*% |
45 * Return the network number from an internet 46 * address; handles class a/b/c network #'s. 47 */ 48in_addr_t 49inet_netof(in) 50 struct in_addr in; 51{ 52 in_addr_t i = ntohl(in.s_addr); --- 7 unchanged lines hidden (view full) --- 60} 61 62/* 63 * Weak aliases for applications that use certain private entry points, 64 * and fail to include <arpa/inet.h>. 65 */ 66#undef inet_netof 67__weak_reference(__inet_netof, inet_netof); | 45 * Return the network number from an internet 46 * address; handles class a/b/c network #'s. 47 */ 48in_addr_t 49inet_netof(in) 50 struct in_addr in; 51{ 52 in_addr_t i = ntohl(in.s_addr); --- 7 unchanged lines hidden (view full) --- 60} 61 62/* 63 * Weak aliases for applications that use certain private entry points, 64 * and fail to include <arpa/inet.h>. 65 */ 66#undef inet_netof 67__weak_reference(__inet_netof, inet_netof); |
68 69/*! \file */ |
|