Deleted Added
full compact
in.h (91959) in.h (91984)
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 91959 2002-03-09 21:02:16Z mike $
34 * $FreeBSD: head/sys/netinet/in.h 91984 2002-03-10 06:42: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.

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

301struct sockaddr_in {
302 u_char sin_len;
303 u_char sin_family;
304 u_short sin_port;
305 struct in_addr sin_addr;
306 char sin_zero[8];
307};
308
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.

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

301struct sockaddr_in {
302 u_char sin_len;
303 u_char sin_family;
304 u_short sin_port;
305 struct in_addr sin_addr;
306 char sin_zero[8];
307};
308
309#ifndef INET_ADDRSTRLEN
309#define INET_ADDRSTRLEN 16
310#define INET_ADDRSTRLEN 16
311#endif
310
311/*
312 * Options for use with [gs]etsockopt at the IP level.
313 * First word of comment is data type; bool is stored in int.
314 */
315#define IP_OPTIONS 1 /* buf/ip_opts; set/get IP options */
316#define IP_HDRINCL 2 /* int; header is included with data */
317#define IP_TOS 3 /* int; IP type of service and preced. */

--- 204 unchanged lines hidden ---
312
313/*
314 * Options for use with [gs]etsockopt at the IP level.
315 * First word of comment is data type; bool is stored in int.
316 */
317#define IP_OPTIONS 1 /* buf/ip_opts; set/get IP options */
318#define IP_HDRINCL 2 /* int; header is included with data */
319#define IP_TOS 3 /* int; IP type of service and preced. */

--- 204 unchanged lines hidden ---