Deleted Added
full compact
socket.h (331722) socket.h (338617)
1/*-
2 * Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994
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 * @(#)socket.h 8.4 (Berkeley) 2/21/94
1/*-
2 * Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994
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 * @(#)socket.h 8.4 (Berkeley) 2/21/94
30 * $FreeBSD: stable/11/sys/sys/socket.h 331722 2018-03-29 02:50:57Z eadler $
30 * $FreeBSD: stable/11/sys/sys/socket.h 338617 2018-09-12 18:52:18Z sobomax $
31 */
32
33#ifndef _SYS_SOCKET_H_
34#define _SYS_SOCKET_H_
35
36#include <sys/cdefs.h>
37#include <sys/_types.h>
38#include <sys/_iovec.h>

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

153#define SO_PEERLABEL 0x1010 /* socket's peer's MAC label */
154#define SO_LISTENQLIMIT 0x1011 /* socket's backlog limit */
155#define SO_LISTENQLEN 0x1012 /* socket's complete queue length */
156#define SO_LISTENINCQLEN 0x1013 /* socket's incomplete queue length */
157#define SO_SETFIB 0x1014 /* use this FIB to route */
158#define SO_USER_COOKIE 0x1015 /* user cookie (dummynet etc.) */
159#define SO_PROTOCOL 0x1016 /* get socket protocol (Linux name) */
160#define SO_PROTOTYPE SO_PROTOCOL /* alias for SO_PROTOCOL (SunOS name) */
31 */
32
33#ifndef _SYS_SOCKET_H_
34#define _SYS_SOCKET_H_
35
36#include <sys/cdefs.h>
37#include <sys/_types.h>
38#include <sys/_iovec.h>

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

153#define SO_PEERLABEL 0x1010 /* socket's peer's MAC label */
154#define SO_LISTENQLIMIT 0x1011 /* socket's backlog limit */
155#define SO_LISTENQLEN 0x1012 /* socket's complete queue length */
156#define SO_LISTENINCQLEN 0x1013 /* socket's incomplete queue length */
157#define SO_SETFIB 0x1014 /* use this FIB to route */
158#define SO_USER_COOKIE 0x1015 /* user cookie (dummynet etc.) */
159#define SO_PROTOCOL 0x1016 /* get socket protocol (Linux name) */
160#define SO_PROTOTYPE SO_PROTOCOL /* alias for SO_PROTOCOL (SunOS name) */
161#define SO_TS_CLOCK 0x1017 /* clock type used for SO_TIMESTAMP */
161#endif
162
162#endif
163
164#if __BSD_VISIBLE
165#define SO_TS_REALTIME_MICRO 0 /* microsecond resolution, realtime */
166#define SO_TS_BINTIME 1 /* sub-nanosecond resolution, realtime */
167#define SO_TS_REALTIME 2 /* nanosecond resolution, realtime */
168#define SO_TS_MONOTONIC 3 /* nanosecond resolution, monotonic */
169#define SO_TS_DEFAULT SO_TS_REALTIME_MICRO
170#define SO_TS_CLOCK_MAX SO_TS_MONOTONIC
171#endif
172
163/*
164 * Space reserved for new socket options added by third-party vendors.
165 * This range applies to all socket option levels. New socket options
166 * in FreeBSD should always use an option value less than SO_VENDOR.
167 */
168#if __BSD_VISIBLE
169#define SO_VENDOR 0x80000000
170#endif

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

529#endif
530
531/* "Socket"-level control message types: */
532#define SCM_RIGHTS 0x01 /* access rights (array of int) */
533#if __BSD_VISIBLE
534#define SCM_TIMESTAMP 0x02 /* timestamp (struct timeval) */
535#define SCM_CREDS 0x03 /* process creds (struct cmsgcred) */
536#define SCM_BINTIME 0x04 /* timestamp (struct bintime) */
173/*
174 * Space reserved for new socket options added by third-party vendors.
175 * This range applies to all socket option levels. New socket options
176 * in FreeBSD should always use an option value less than SO_VENDOR.
177 */
178#if __BSD_VISIBLE
179#define SO_VENDOR 0x80000000
180#endif

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

539#endif
540
541/* "Socket"-level control message types: */
542#define SCM_RIGHTS 0x01 /* access rights (array of int) */
543#if __BSD_VISIBLE
544#define SCM_TIMESTAMP 0x02 /* timestamp (struct timeval) */
545#define SCM_CREDS 0x03 /* process creds (struct cmsgcred) */
546#define SCM_BINTIME 0x04 /* timestamp (struct bintime) */
547#define SCM_REALTIME 0x05 /* timestamp (struct timespec) */
548#define SCM_MONOTONIC 0x06 /* timestamp (struct timespec) */
537#endif
538
539#if __BSD_VISIBLE
540/*
541 * 4.3 compat sockaddr, move to compat file later
542 */
543struct osockaddr {
544 unsigned short sa_family; /* address family */

--- 146 unchanged lines hidden ---
549#endif
550
551#if __BSD_VISIBLE
552/*
553 * 4.3 compat sockaddr, move to compat file later
554 */
555struct osockaddr {
556 unsigned short sa_family; /* address family */

--- 146 unchanged lines hidden ---