in.h (196967) | in.h (199208) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1990, 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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)in.h 8.3 (Berkeley) 1/3/94 | 1/*- 2 * Copyright (c) 1982, 1986, 1990, 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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)in.h 8.3 (Berkeley) 1/3/94 |
30 * $FreeBSD: head/sys/netinet/in.h 196967 2009-09-08 10:39:38Z phk $ | 30 * $FreeBSD: head/sys/netinet/in.h 199208 2009-11-12 00:46:28Z attilio $ |
31 */ 32 33#ifndef _NETINET_IN_H_ 34#define _NETINET_IN_H_ 35 36#include <sys/cdefs.h> 37#include <sys/_types.h> 38#include <machine/endian.h> --- 669 unchanged lines hidden (view full) --- 708#ifdef _KERNEL 709 710struct ifnet; struct mbuf; /* forward declarations for Standard C */ 711 712int in_broadcast(struct in_addr, struct ifnet *); 713int in_canforward(struct in_addr); 714int in_localaddr(struct in_addr); 715int in_localip(struct in_addr); | 31 */ 32 33#ifndef _NETINET_IN_H_ 34#define _NETINET_IN_H_ 35 36#include <sys/cdefs.h> 37#include <sys/_types.h> 38#include <machine/endian.h> --- 669 unchanged lines hidden (view full) --- 708#ifdef _KERNEL 709 710struct ifnet; struct mbuf; /* forward declarations for Standard C */ 711 712int in_broadcast(struct in_addr, struct ifnet *); 713int in_canforward(struct in_addr); 714int in_localaddr(struct in_addr); 715int in_localip(struct in_addr); |
716int inet_aton(const char *, struct in_addr *); /* in libkern */ |
|
716char *inet_ntoa(struct in_addr); /* in libkern */ 717char *inet_ntoa_r(struct in_addr ina, char *buf); /* in libkern */ 718void in_ifdetach(struct ifnet *); 719 720#define in_hosteq(s, t) ((s).s_addr == (t).s_addr) 721#define in_nullhost(x) ((x).s_addr == INADDR_ANY) 722#define in_allhosts(x) ((x).s_addr == htonl(INADDR_ALLHOSTS_GROUP)) 723 --- 14 unchanged lines hidden --- | 717char *inet_ntoa(struct in_addr); /* in libkern */ 718char *inet_ntoa_r(struct in_addr ina, char *buf); /* in libkern */ 719void in_ifdetach(struct ifnet *); 720 721#define in_hosteq(s, t) ((s).s_addr == (t).s_addr) 722#define in_nullhost(x) ((x).s_addr == INADDR_ANY) 723#define in_allhosts(x) ((x).s_addr == htonl(INADDR_ALLHOSTS_GROUP)) 724 --- 14 unchanged lines hidden --- |