socketvar.h (281437) | socketvar.h (286836) |
---|---|
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 --- 14 unchanged lines hidden (view full) --- 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 * @(#)socketvar.h 8.3 (Berkeley) 2/19/95 30 * | 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 --- 14 unchanged lines hidden (view full) --- 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 * @(#)socketvar.h 8.3 (Berkeley) 2/19/95 30 * |
31 * $FreeBSD: head/sys/sys/socketvar.h 281437 2015-04-11 16:00:33Z mjg $ | 31 * $FreeBSD: head/sys/sys/socketvar.h 286836 2015-08-17 05:53:37Z delphij $ |
32 */ 33 34#ifndef _SYS_SOCKETVAR_H_ 35#define _SYS_SOCKETVAR_H_ 36 37#include <sys/queue.h> /* for TAILQ macros */ 38#include <sys/selinfo.h> /* for struct selinfo */ 39#include <sys/_lock.h> --- 33 unchanged lines hidden (view full) --- 73struct socket { 74 int so_count; /* (b) reference count */ 75 short so_type; /* (a) generic type, see socket.h */ 76 short so_options; /* from socket call, see socket.h */ 77 short so_linger; /* time to linger while closing */ 78 short so_state; /* (b) internal state flags SS_* */ 79 int so_qstate; /* (e) internal state flags SQ_* */ 80 void *so_pcb; /* protocol control block */ | 32 */ 33 34#ifndef _SYS_SOCKETVAR_H_ 35#define _SYS_SOCKETVAR_H_ 36 37#include <sys/queue.h> /* for TAILQ macros */ 38#include <sys/selinfo.h> /* for struct selinfo */ 39#include <sys/_lock.h> --- 33 unchanged lines hidden (view full) --- 73struct socket { 74 int so_count; /* (b) reference count */ 75 short so_type; /* (a) generic type, see socket.h */ 76 short so_options; /* from socket call, see socket.h */ 77 short so_linger; /* time to linger while closing */ 78 short so_state; /* (b) internal state flags SS_* */ 79 int so_qstate; /* (e) internal state flags SQ_* */ 80 void *so_pcb; /* protocol control block */ |
81 struct vnet *so_vnet; /* network stack instance */ | 81 struct vnet *so_vnet; /* (a) network stack instance */ |
82 struct protosw *so_proto; /* (a) protocol handle */ 83/* 84 * Variables for connection queuing. 85 * Socket where accepts occur is so_head in all subsidiary sockets. 86 * If so_head is 0, socket is not related to an accept. 87 * For head socket so_incomp queues partially completed connections, 88 * while so_comp is a queue of connections ready to be accepted. 89 * If a connection is aborted and it has so_head set, then --- 329 unchanged lines hidden --- | 82 struct protosw *so_proto; /* (a) protocol handle */ 83/* 84 * Variables for connection queuing. 85 * Socket where accepts occur is so_head in all subsidiary sockets. 86 * If so_head is 0, socket is not related to an accept. 87 * For head socket so_incomp queues partially completed connections, 88 * while so_comp is a queue of connections ready to be accepted. 89 * If a connection is aborted and it has so_head set, then --- 329 unchanged lines hidden --- |