strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed unused Makefile
[strongswan.git]
/
src
/
stroke
/
stroke.h
diff --git
a/src/stroke/stroke.h
b/src/stroke/stroke.h
index
7e45b3c
..
a5e26af
100644
(file)
--- a/
src/stroke/stroke.h
+++ b/
src/stroke/stroke.h
@@
-28,6
+28,7
@@
*/
#define STROKE_SOCKET "/var/run/charon.ctl"
*/
#define STROKE_SOCKET "/var/run/charon.ctl"
+#define STROKE_BUF_LEN 2048
typedef struct stroke_msg_t stroke_msg_t;
typedef struct stroke_msg_t stroke_msg_t;
@@
-36,7
+37,7
@@
typedef struct stroke_msg_t stroke_msg_t;
*/
struct stroke_msg_t {
/* length of this message with all strings */
*/
struct stroke_msg_t {
/* length of this message with all strings */
- u_int
16_t
length;
+ u_int length;
/* type of the message */
enum {
/* type of the message */
enum {
@@
-64,10
+65,11
@@
struct stroke_msg_t {
} type;
union {
} type;
union {
- /* data for STR_INITIATE, STR_INSTALL, STR_UP, STR_DOWN */
+ /* data for STR_INITIATE, STR_INSTALL, STR_UP, STR_DOWN
, ...
*/
struct {
char *name;
struct {
char *name;
- } initiate, install, terminate, status;
+ } initiate, install, terminate, status, del_conn;
+
/* data for STR_ADD_CONN */
struct {
char *name;
/* data for STR_ADD_CONN */
struct {
char *name;
@@
-81,17
+83,19
@@
struct stroke_msg_t {
int subnet_mask;
} me, other;
} add_conn;
int subnet_mask;
} me, other;
} add_conn;
+
struct {
char *context;
char *type;
int enable;
} logtype;
struct {
char *context;
char *type;
int enable;
} logtype;
+
struct {
char *context;
int level;
} loglevel;
};
struct {
char *context;
int level;
} loglevel;
};
-
u_int8_t buffer[
];
+
char buffer[STROKE_BUF_LEN
];
};
#endif /* STROKE_H_ */
};
#endif /* STROKE_H_ */