Last change
on this file since 1194 was 1166, checked in by rossy, 3 years ago |
Daodan: Replace MinGW build env with an up-to-date MSYS2 env
|
File size:
1.3 KB
|
Line | |
---|
1 | /**
|
---|
2 | * This file has no copyright assigned and is placed in the Public Domain.
|
---|
3 | * This file is part of the mingw-w64 runtime package.
|
---|
4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
---|
5 | */
|
---|
6 | #ifndef _WSHISOTP_
|
---|
7 | #define _WSHISOTP_
|
---|
8 |
|
---|
9 | #define ISOPROTO_TP0 25
|
---|
10 | #define ISOPROTO_TP1 26
|
---|
11 | #define ISOPROTO_TP2 27
|
---|
12 | #define ISOPROTO_TP3 28
|
---|
13 | #define ISOPROTO_TP4 29
|
---|
14 | #define ISOPROTO_TP ISOPROTO_TP4
|
---|
15 | #define ISOPROTO_CLTP 30
|
---|
16 | #define ISOPROTO_CLNP 31
|
---|
17 | #define ISOPROTO_X25 32
|
---|
18 | #define ISOPROTO_INACT_NL 33
|
---|
19 | #define ISOPROTO_ESIS 34
|
---|
20 | #define ISOPROTO_INTRAISIS 35
|
---|
21 |
|
---|
22 | #define IPPROTO_RAW 255
|
---|
23 | #define IPPROTO_MAX 256
|
---|
24 |
|
---|
25 | #define ISO_MAX_ADDR_LENGTH 64
|
---|
26 | #define ISO_HIERARCHICAL 0
|
---|
27 | #define ISO_NON_HIERARCHICAL 1
|
---|
28 |
|
---|
29 | typedef struct sockaddr_tp {
|
---|
30 | u_short tp_family;
|
---|
31 | u_short tp_addr_type;
|
---|
32 | u_short tp_taddr_len;
|
---|
33 | u_short tp_tsel_len;
|
---|
34 | u_char tp_addr[ISO_MAX_ADDR_LENGTH];
|
---|
35 | } SOCKADDR_TP,*PSOCKADDR_TP,*LPSOCKADDR_TP;
|
---|
36 |
|
---|
37 | #define ISO_SET_TP_ADDR(sa_tp,port,portlen,node,nodelen) (sa_tp)->tp_family = AF_ISO; (sa_tp)->tp_addr_type = ISO_HIERARCHICAL; (sa_tp)->tp_tsel_len = (portlen); (sa_tp)->tp_taddr_len = (portlen) + (nodelen); memcpy(&(sa_tp)->tp_addr,(port),(portlen)); memcpy(&(sa_tp)->tp_addr[portlen],(node),(nodelen));
|
---|
38 |
|
---|
39 | #define ISO_EXP_DATA_USE 00
|
---|
40 | #define ISO_EXP_DATA_NUSE 01
|
---|
41 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.