in.h (211501) | in.h (213103) |
---|---|
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 211501 2010-08-19 11:31:03Z anchie $ | 30 * $FreeBSD: head/sys/netinet/in.h 213103 2010-09-24 15:01:45Z 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> --- 682 unchanged lines hidden (view full) --- 721 722int in_broadcast(struct in_addr, struct ifnet *); 723int in_canforward(struct in_addr); 724int in_localaddr(struct in_addr); 725int in_localip(struct in_addr); 726int inet_aton(const char *, struct in_addr *); /* in libkern */ 727char *inet_ntoa(struct in_addr); /* in libkern */ 728char *inet_ntoa_r(struct in_addr ina, char *buf); /* in libkern */ | 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> --- 682 unchanged lines hidden (view full) --- 721 722int in_broadcast(struct in_addr, struct ifnet *); 723int in_canforward(struct in_addr); 724int in_localaddr(struct in_addr); 725int in_localip(struct in_addr); 726int inet_aton(const char *, struct in_addr *); /* in libkern */ 727char *inet_ntoa(struct in_addr); /* in libkern */ 728char *inet_ntoa_r(struct in_addr ina, char *buf); /* in libkern */ |
729char *inet_ntop(int, const void *, char *, socklen_t); /* in libkern */ 730int inet_pton(int af, const char *, void *); /* in libkern */ |
|
729void in_ifdetach(struct ifnet *); 730 731#define in_hosteq(s, t) ((s).s_addr == (t).s_addr) 732#define in_nullhost(x) ((x).s_addr == INADDR_ANY) 733#define in_allhosts(x) ((x).s_addr == htonl(INADDR_ALLHOSTS_GROUP)) 734 735#define satosin(sa) ((struct sockaddr_in *)(sa)) 736#define sintosa(sin) ((struct sockaddr *)(sin)) --- 38 unchanged lines hidden --- | 731void in_ifdetach(struct ifnet *); 732 733#define in_hosteq(s, t) ((s).s_addr == (t).s_addr) 734#define in_nullhost(x) ((x).s_addr == INADDR_ANY) 735#define in_allhosts(x) ((x).s_addr == htonl(INADDR_ALLHOSTS_GROUP)) 736 737#define satosin(sa) ((struct sockaddr_in *)(sa)) 738#define sintosa(sin) ((struct sockaddr *)(sin)) --- 38 unchanged lines hidden --- |