Deleted Added
full compact
in.h (149371) in.h (150296)
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 149371 2005-08-22 16:13:08Z andre $
30 * $FreeBSD: head/sys/netinet/in.h 150296 2005-09-18 17:36:28Z rwatson $
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>

--- 528 unchanged lines hidden (view full) ---

567struct ifnet; struct mbuf; /* forward declarations for Standard C */
568
569int in_broadcast(struct in_addr, struct ifnet *);
570int in_canforward(struct in_addr);
571int in_localaddr(struct in_addr);
572int in_localip(struct in_addr);
573char *inet_ntoa(struct in_addr); /* in libkern */
574char *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>

--- 528 unchanged lines hidden (view full) ---

567struct ifnet; struct mbuf; /* forward declarations for Standard C */
568
569int in_broadcast(struct in_addr, struct ifnet *);
570int in_canforward(struct in_addr);
571int in_localaddr(struct in_addr);
572int in_localip(struct in_addr);
573char *inet_ntoa(struct in_addr); /* in libkern */
574char *inet_ntoa_r(struct in_addr ina, char *buf); /* in libkern */
575void in_ifdetach(struct ifnet *);
575
576#define in_hosteq(s, t) ((s).s_addr == (t).s_addr)
577#define in_nullhost(x) ((x).s_addr == INADDR_ANY)
578
579#define satosin(sa) ((struct sockaddr_in *)(sa))
580#define sintosa(sin) ((struct sockaddr *)(sin))
581#define ifatoia(ifa) ((struct in_ifaddr *)(ifa))
582
583#endif /* _KERNEL */
584
585/* INET6 stuff */
586#if __POSIX_VISIBLE >= 200112
587#define __KAME_NETINET_IN_H_INCLUDED_
588#include <netinet6/in6.h>
589#undef __KAME_NETINET_IN_H_INCLUDED_
590#endif
591
592#endif /* !_NETINET_IN_H_*/
576
577#define in_hosteq(s, t) ((s).s_addr == (t).s_addr)
578#define in_nullhost(x) ((x).s_addr == INADDR_ANY)
579
580#define satosin(sa) ((struct sockaddr_in *)(sa))
581#define sintosa(sin) ((struct sockaddr *)(sin))
582#define ifatoia(ifa) ((struct in_ifaddr *)(ifa))
583
584#endif /* _KERNEL */
585
586/* INET6 stuff */
587#if __POSIX_VISIBLE >= 200112
588#define __KAME_NETINET_IN_H_INCLUDED_
589#include <netinet6/in6.h>
590#undef __KAME_NETINET_IN_H_INCLUDED_
591#endif
592
593#endif /* !_NETINET_IN_H_*/