Feature #1986 ยป racoon-login-output.diff
| /root/ipsec-tools-modified/work/ipsec-tools-0.8.0/src/racoon/handler.c 2011-11-01 15:27:26.000000000 -0400 | ||
|---|---|---|
|
pd->etype = iph1->etype;
|
||
|
pd->created = iph1->created;
|
||
|
pd->ph2cnt = iph1->ph2cnt;
|
||
|
#ifdef ENABLE_HYBRID
|
||
|
if (iph1->mode_cfg == NULL) {
|
||
|
/* Not a mobile client, so no login name */
|
||
|
strncpy(pd->login, " ", LOGINLEN);
|
||
|
pd->login[LOGINLEN] = '\0';
|
||
|
} else {
|
||
|
strncpy(pd->login, iph1->mode_cfg->login, LOGINLEN);
|
||
|
pd->login[LOGINLEN] = '\0';
|
||
|
}
|
||
|
#endif
|
||
|
pd++;
|
||
|
}
|
||
| /root/ipsec-tools-modified/work/ipsec-tools-0.8.0/src/racoon/handler.h 2011-10-28 16:06:15.000000000 -0400 | ||
|---|---|---|
|
u_int8_t etype;
|
||
|
time_t created;
|
||
|
int ph2cnt;
|
||
|
#ifdef ENABLE_HYBRID
|
||
|
#define LOGINLEN 31
|
||
|
char login[LOGINLEN + 1];
|
||
|
#endif
|
||
|
};
|
||
|
struct sockaddr;
|
||
| /root/ipsec-tools-modified/work/ipsec-tools-0.8.0/src/racoon/racoonctl.c 2011-10-31 14:30:04.000000000 -0400 | ||
|---|---|---|
|
/* semi long header;
|
||
|
1234567890123456789012 0000000000000000:0000000000000000 00 X 00 X 0000-00-00 00:00:00 000000
|
||
|
*/
|
||
|
#ifdef ENABLE_HYBRID
|
||
|
char *header2 =
|
||
|
"Destination Cookies ST S V E Created Phase2 Login";
|
||
|
#else
|
||
|
char *header2 =
|
||
|
"Destination Cookies ST S V E Created Phase2";
|
||
|
#endif
|
||
|
/* long header;
|
||
|
0000:0000:0000:0000:0000:0000:0000:0000.00000 0000:0000:0000:0000:0000:0000:0000:0000.00000 0000000000000000:0000000000000000 00 X 00 X 0000-00-00 00:00:00 000000
|
||
| ... | ... | |
|
if (long_format >= 1)
|
||
|
printf("%6d ", pd->ph2cnt);
|
||
|
#ifdef ENABLE_HYBRID
|
||
|
if ((long_format >= 1) && (pd->login != NULL))
|
||
|
printf(" %s", pd->login);
|
||
|
#endif
|
||
|
printf("\n");
|
||
|
pd++;
|
||