|
|
1.1 root 1: /*
2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7: * Reserved. This file contains Original Code and/or Modifications of
8: * Original Code as defined in and that are subject to the Apple Public
9: * Source License Version 1.1 (the "License"). You may not use this file
10: * except in compliance with the License. Please obtain a copy of the
11: * License at http://www.apple.com/publicsource and read it before using
12: * this file.
13: *
14: * The Original Code and all software distributed under the License are
15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19: * License for the specific language governing rights and limitations
20: * under the License.
21: *
22: * @APPLE_LICENSE_HEADER_END@
23: */
24:
25: struct tp_event {
26: int ev_number;
27: struct timeval e_time;
28: #define TM_inact 0x0
29: #define TM_retrans 0x1
30: #define TM_sendack 0x2
31: #define TM_notused 0x3
32:
33: union{
34: struct { SeqNum e_low; SeqNum e_high; int e_retrans; } EV_TM_reference;
35:
36: #define TM_reference 0x4
37: struct { SeqNum e_low; SeqNum e_high; int e_retrans; } EV_TM_data_retrans;
38:
39: #define TM_data_retrans 0x5
40: struct {
41: u_char e_reason;
42: } EV_ER_TPDU;
43:
44: #define ER_TPDU 0x6
45: struct { struct mbuf *e_data; /* first field */
46: int e_datalen; /* 2nd field */
47: u_int e_cdt;
48: } EV_CR_TPDU;
49:
50: #define CR_TPDU 0x7
51: struct { struct mbuf *e_data; /* first field */
52: int e_datalen; /* 2nd field */
53: u_short e_sref;
54: u_char e_reason;
55: } EV_DR_TPDU;
56:
57: #define DR_TPDU 0x8
58: #define DC_TPDU 0x9
59: struct { struct mbuf *e_data; /* first field */
60: int e_datalen; /* 2nd field */
61: u_short e_sref;
62: u_int e_cdt;
63: } EV_CC_TPDU;
64:
65: #define CC_TPDU 0xa
66: struct { u_int e_cdt;
67: SeqNum e_seq;
68: SeqNum e_subseq;
69: u_char e_fcc_present;
70: } EV_AK_TPDU;
71:
72: #define AK_TPDU 0xb
73: struct { struct mbuf *e_data; /* first field */
74: int e_datalen; /* 2nd field */
75: u_int e_eot;
76: SeqNum e_seq;
77: } EV_DT_TPDU;
78:
79: #define DT_TPDU 0xc
80: struct { struct mbuf *e_data; /* first field */
81: int e_datalen; /* 2nd field */
82: SeqNum e_seq;
83: } EV_XPD_TPDU;
84:
85: #define XPD_TPDU 0xd
86: struct { SeqNum e_seq; } EV_XAK_TPDU;
87:
88: #define XAK_TPDU 0xe
89: #define T_CONN_req 0xf
90: struct { u_char e_reason; } EV_T_DISC_req;
91:
92: #define T_DISC_req 0x10
93: #define T_LISTEN_req 0x11
94: #define T_DATA_req 0x12
95: #define T_XPD_req 0x13
96: #define T_USR_rcvd 0x14
97: #define T_USR_Xrcvd 0x15
98: #define T_DETACH 0x16
99: #define T_NETRESET 0x17
100: #define T_ACPT_req 0x18
101: }ev_union;
102: };/* end struct event */
103:
104: #define tp_NEVENTS 0x19
105:
106: #define ATTR(X)ev_union.EV_/**/X/**/
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.