Deleted Added
full compact
protosw.h (186809) protosw.h (193731)
1/*-
2 * Copyright (c) 1982, 1986, 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 * @(#)protosw.h 8.1 (Berkeley) 6/2/93
1/*-
2 * Copyright (c) 1982, 1986, 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 * @(#)protosw.h 8.1 (Berkeley) 6/2/93
30 * $FreeBSD: head/sys/sys/protosw.h 186809 2009-01-06 11:02:17Z bz $
30 * $FreeBSD: head/sys/sys/protosw.h 193731 2009-06-08 17:15:40Z zec $
31 */
32
33#ifndef _SYS_PROTOSW_H_
34#define _SYS_PROTOSW_H_
35
36/* Forward declare these structures referenced from prototypes below. */
37struct mbuf;
38struct thread;

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

65 */
66/* USE THESE FOR YOUR PROTOTYPES ! */
67typedef void pr_input_t (struct mbuf *, int);
68typedef int pr_input6_t (struct mbuf **, int*, int); /* XXX FIX THIS */
69typedef int pr_output_t (struct mbuf *, struct socket *);
70typedef void pr_ctlinput_t (int, struct sockaddr *, void *);
71typedef int pr_ctloutput_t (struct socket *, struct sockopt *);
72typedef void pr_init_t (void);
31 */
32
33#ifndef _SYS_PROTOSW_H_
34#define _SYS_PROTOSW_H_
35
36/* Forward declare these structures referenced from prototypes below. */
37struct mbuf;
38struct thread;

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

65 */
66/* USE THESE FOR YOUR PROTOTYPES ! */
67typedef void pr_input_t (struct mbuf *, int);
68typedef int pr_input6_t (struct mbuf **, int*, int); /* XXX FIX THIS */
69typedef int pr_output_t (struct mbuf *, struct socket *);
70typedef void pr_ctlinput_t (int, struct sockaddr *, void *);
71typedef int pr_ctloutput_t (struct socket *, struct sockopt *);
72typedef void pr_init_t (void);
73typedef void pr_destroy_t (void);
73typedef void pr_fasttimo_t (void);
74typedef void pr_slowtimo_t (void);
75typedef void pr_drain_t (void);
76
77struct protosw {
78 short pr_type; /* socket type used for */
79 struct domain *pr_domain; /* domain protocol a member of */
80 short pr_protocol; /* protocol number */
81 short pr_flags; /* see below */
82/* protocol-protocol hooks */
83 pr_input_t *pr_input; /* input to protocol (from below) */
84 pr_output_t *pr_output; /* output to protocol (from above) */
85 pr_ctlinput_t *pr_ctlinput; /* control input (from below) */
86 pr_ctloutput_t *pr_ctloutput; /* control output (from above) */
87/* utility hooks */
88 pr_init_t *pr_init;
74typedef void pr_fasttimo_t (void);
75typedef void pr_slowtimo_t (void);
76typedef void pr_drain_t (void);
77
78struct protosw {
79 short pr_type; /* socket type used for */
80 struct domain *pr_domain; /* domain protocol a member of */
81 short pr_protocol; /* protocol number */
82 short pr_flags; /* see below */
83/* protocol-protocol hooks */
84 pr_input_t *pr_input; /* input to protocol (from below) */
85 pr_output_t *pr_output; /* output to protocol (from above) */
86 pr_ctlinput_t *pr_ctlinput; /* control input (from below) */
87 pr_ctloutput_t *pr_ctloutput; /* control output (from above) */
88/* utility hooks */
89 pr_init_t *pr_init;
90 pr_destroy_t *pr_destroy;
89 pr_fasttimo_t *pr_fasttimo; /* fast timeout (200ms) */
90 pr_slowtimo_t *pr_slowtimo; /* slow timeout (500ms) */
91 pr_drain_t *pr_drain; /* flush any excess space possible */
92
93 struct pr_usrreqs *pr_usrreqs; /* user-protocol hook */
94};
95/*#endif*/
96

--- 241 unchanged lines hidden ---
91 pr_fasttimo_t *pr_fasttimo; /* fast timeout (200ms) */
92 pr_slowtimo_t *pr_slowtimo; /* slow timeout (500ms) */
93 pr_drain_t *pr_drain; /* flush any excess space possible */
94
95 struct pr_usrreqs *pr_usrreqs; /* user-protocol hook */
96};
97/*#endif*/
98

--- 241 unchanged lines hidden ---