1 | --- src/output-plugins/spo_alert_arubaaction.c Sat Jul 21 12:31:14 2007 |
---|
2 | +++ src/output-plugins/spo_alert_arubaaction.c.orig Sat Jul 21 12:31:26 2007 |
---|
3 | @@ -78,8 +78,8 @@ |
---|
4 | typedef struct _SpoAlertArubaActionData |
---|
5 | { |
---|
6 | char *secret; |
---|
7 | - uint8_t secret_type; |
---|
8 | - uint8_t action_type; |
---|
9 | + u_int8_t secret_type; |
---|
10 | + u_int8_t action_type; |
---|
11 | char *role_name; |
---|
12 | struct in_addr aswitch; |
---|
13 | int fd; |
---|
14 | @@ -91,7 +91,7 @@ |
---|
15 | #define MAX_RESPONSE_LEN MAX_POST_LEN |
---|
16 | |
---|
17 | typedef struct _ArubaSecretType { |
---|
18 | - uint8_t type; |
---|
19 | + u_int8_t type; |
---|
20 | char *name; |
---|
21 | } ArubaSecretType; |
---|
22 | |
---|
23 | @@ -154,8 +154,8 @@ |
---|
24 | void AlertArubaActionRestartFunc(int, void *); |
---|
25 | void AlertArubaAction(Packet *, char *, void *, Event *); |
---|
26 | int ArubaSwitchConnect(SpoAlertArubaActionData *data); |
---|
27 | -int ArubaSwitchSend(SpoAlertArubaActionData *data, uint8_t *post, int len); |
---|
28 | -int ArubaSwitchRecv(SpoAlertArubaActionData *data, uint8_t *recv, int maxlen); |
---|
29 | +int ArubaSwitchSend(SpoAlertArubaActionData *data, u_int8_t *post, int len); |
---|
30 | +int ArubaSwitchRecv(SpoAlertArubaActionData *data, u_int8_t *recv, int maxlen); |
---|
31 | |
---|
32 | /* |
---|
33 | * Function: SetupAlertArubaAction() |
---|
34 | @@ -413,12 +413,12 @@ |
---|
35 | return; |
---|
36 | } |
---|
37 | |
---|
38 | -int ArubaSwitchSend(SpoAlertArubaActionData *data, uint8_t *post, int len) |
---|
39 | +int ArubaSwitchSend(SpoAlertArubaActionData *data, u_int8_t *post, int len) |
---|
40 | { |
---|
41 | return(write(data->fd, post, len)); |
---|
42 | } |
---|
43 | |
---|
44 | -int ArubaSwitchRecv(SpoAlertArubaActionData *data, uint8_t *recv, int maxlen) |
---|
45 | +int ArubaSwitchRecv(SpoAlertArubaActionData *data, u_int8_t *recv, int maxlen) |
---|
46 | { |
---|
47 | return(read(data->fd, recv, maxlen)); |
---|
48 | } |
---|