Deleted Added
full compact
in.h (87158) in.h (90868)
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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)in.h 8.3 (Berkeley) 1/3/94
34 * $FreeBSD: head/sys/netinet/in.h 87158 2001-12-01 03:43:01Z mike $
34 * $FreeBSD: head/sys/netinet/in.h 90868 2002-02-18 20:35:27Z mike $
35 */
36
37#ifndef _NETINET_IN_H_
38#define _NETINET_IN_H_
39
40/*
41 * Constants and structures defined by the internet system,
42 * Per RFC 790, September 1981, and numerous additions.

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

491int in_localaddr __P((struct in_addr));
492char *inet_ntoa __P((struct in_addr)); /* in libkern */
493char *inet_ntoa_r __P((struct in_addr ina, char *buf)); /* in libkern */
494
495#define satosin(sa) ((struct sockaddr_in *)(sa))
496#define sintosa(sin) ((struct sockaddr *)(sin))
497#define ifatoia(ifa) ((struct in_ifaddr *)(ifa))
498
35 */
36
37#ifndef _NETINET_IN_H_
38#define _NETINET_IN_H_
39
40/*
41 * Constants and structures defined by the internet system,
42 * Per RFC 790, September 1981, and numerous additions.

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

491int in_localaddr __P((struct in_addr));
492char *inet_ntoa __P((struct in_addr)); /* in libkern */
493char *inet_ntoa_r __P((struct in_addr ina, char *buf)); /* in libkern */
494
495#define satosin(sa) ((struct sockaddr_in *)(sa))
496#define sintosa(sin) ((struct sockaddr *)(sin))
497#define ifatoia(ifa) ((struct in_ifaddr *)(ifa))
498
499#else /* !_KERNEL */
500
501#ifndef _BYTEORDER_FUNC_DEFINED
502#define _BYTEORDER_FUNC_DEFINED
503#define htonl(x) __htonl(x)
504#define htons(x) __htons(x)
505#define ntohl(x) __ntohl(x)
506#define ntohs(x) __ntohs(x)
499#endif
500
507#endif
508
509__BEGIN_DECLS
510__uint32_t htonl __P((__uint32_t));
511__uint16_t htons __P((__uint16_t));
512__uint32_t ntohl __P((__uint32_t));
513__uint16_t ntohs __P((__uint16_t));
514__END_DECLS
515
516#endif /* _KERNEL */
517
501#endif
518#endif