16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
23 */
24
25 #ifndef _IKEDOOR_H
26 #define _IKEDOOR_H
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 #include <limits.h>
33 #include <sys/sysmacros.h>
34 #include <net/pfkeyv2.h>
35 #include <door.h>
36
37 /*
38 * This version number is intended to stop the calling process from
39 * getting confused if a structure is changed and a mismatch occurs.
40 * This should be incremented each time a structure is changed.
41 */
42
43 /*
44 * The IKE process may be a 64-bit process, but ikeadm or any other IKE
45 * door consumer does not have to be. We need to be strict ala. PF_KEY or
46 * any on-the-wire-protocol with respect to structure fields offsets and
47 * alignment. Please make sure all structures are the same size on both
48 * 64-bit and 32-bit execution environments (or even other ones), and that
49 * apart from trivial 4-byte enums or base headers, that all structures are
50 * multiples of 8-bytes (64-bits).
51 */
52 #define DOORVER 4
53 #define DOORNM "/var/run/ike_door"
54
55
|
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
23 */
24
25 #ifndef _IKEDOOR_H
26 #define _IKEDOOR_H
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 #include <limits.h>
33 #include <sys/sysmacros.h>
34 #include <net/pfkeyv2.h>
35 #include <door.h>
36 #include <sys/socket.h>
37
38 /*
39 * This version number is intended to stop the calling process from
40 * getting confused if a structure is changed and a mismatch occurs.
41 * This should be incremented each time a structure is changed.
42 */
43
44 /*
45 * The IKE process may be a 64-bit process, but ikeadm or any other IKE
46 * door consumer does not have to be. We need to be strict ala. PF_KEY or
47 * any on-the-wire-protocol with respect to structure fields offsets and
48 * alignment. Please make sure all structures are the same size on both
49 * 64-bit and 32-bit execution environments (or even other ones), and that
50 * apart from trivial 4-byte enums or base headers, that all structures are
51 * multiples of 8-bytes (64-bits).
52 */
53 #define DOORVER 4
54 #define DOORNM "/var/run/ike_door"
55
56
|