The comparison with the UAT keys are broken, this is

a fix for the SPI the src and dst IP address strings needs fixing too.
I'll look into that tomorrow if no one beats me too it.

svn path=/trunk/; revision=39621
This commit is contained in:
Anders Broman 2011-10-26 21:42:45 +00:00
parent 406678d63b
commit 095c62b66e
1 changed files with 3 additions and 2 deletions

View File

@ -151,7 +151,8 @@ static dissector_table_t ip_dissector_table;
#define IPSEC_SA_IPV6 2
#define IPSEC_SA_UNKNOWN -1
#define IPSEC_SA_WILDCARDS_ANY '*'
#define IPSEC_SPI_LEN_MAX 10
/* the maximum number of bytes (10)(including the terminating nul character(11)) */
#define IPSEC_SPI_LEN_MAX 11
#endif
@ -812,7 +813,7 @@ get_esp_sa(gint protocol_typ, gchar *src, gchar *dst, gint spi,
gchar spi_string[IPSEC_SPI_LEN_MAX];
gint key_len;
g_snprintf(spi_string, IPSEC_SPI_LEN_MAX,"%i", spi);
g_snprintf(spi_string, IPSEC_SPI_LEN_MAX,"0x%x", spi);
for (i = 0; (found == FALSE) && (i < num_sa_uat); i++)
{