From e92e19c17766519bb8c8df5ab3b0ab661f93354d Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Thu, 5 Nov 2009 08:38:00 +0100 Subject: [PATCH] pluto ignores proprietary Juniper SRX notification 40001 --- src/pluto/constants.c | 10 +++++++++- src/pluto/constants.h | 5 ++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/pluto/constants.c b/src/pluto/constants.c index 4716c6ad8..4721d6ae0 100644 --- a/src/pluto/constants.c +++ b/src/pluto/constants.c @@ -988,9 +988,17 @@ static const char *const notification_dpd_name[] = { "R_U_THERE_ACK", }; +static const char *const notification_juniper_name[] = { + "NS_NHTB_INFORM", +}; + +enum_names notification_juniper_names = + { NS_NHTB_INFORM, NS_NHTB_INFORM, + notification_juniper_name, NULL }; + enum_names notification_dpd_names = { R_U_THERE, R_U_THERE_ACK, - notification_dpd_name, NULL }; + notification_dpd_name, ¬ification_juniper_names }; enum_names ipsec_notification_names = { IPSEC_RESPONDER_LIFETIME, IPSEC_INITIAL_CONTACT, diff --git a/src/pluto/constants.h b/src/pluto/constants.h index 38fa0f2c7..57450368e 100644 --- a/src/pluto/constants.h +++ b/src/pluto/constants.h @@ -1040,7 +1040,10 @@ typedef enum { /* RFC 3706 DPD */ R_U_THERE = 36136, - R_U_THERE_ACK = 36137 + R_U_THERE_ACK = 36137, + + /* Juniper SRX private use */ + NS_NHTB_INFORM = 40001 } notification_t;