aboutsummaryrefslogtreecommitdiffstats
path: root/meta-cgl-common/recipes-cgl/racoon2/racoon2/0004-racoon2-disable-hard-limit-timer.patch
blob: 0ba724fe0d6fa48104ef0392b1374401e8b38644 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
From 06da02f5282e3e31f839f78f33107bb457dd365f Mon Sep 17 00:00:00 2001
From: Jeremy Puhlman <jpuhlman@mvista.com>
Date: Wed, 18 Mar 2020 20:22:57 +0000
Subject: [PATCH] racoon2-disable-hard-limit-timer

---
 iked/ikev2_child.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/iked/ikev2_child.c b/iked/ikev2_child.c
index 8b693ff..0b8fa93 100644
--- a/iked/ikev2_child.c
+++ b/iked/ikev2_child.c
@@ -836,7 +836,7 @@ ikev2_create_child_responder_cont(struct ikev2_child_sa *child_sa)
 	ikev2_add_ipsec_sa(child_sa, &child_sa->child_param,
 			   child_sa->peer_proposal, child_sa->my_proposal[1]);
 
-	/* #if defined(__FreeBSD__) || defined(__NetBSD__) */
+#if defined(__FreeBSD__) || defined(__NetBSD__)
 	/* KAME does not generate hard lifetime expiration message */
 	/* start expiration timer */
 	{
@@ -858,7 +858,7 @@ ikev2_create_child_responder_cont(struct ikev2_child_sa *child_sa)
 			}
 		}
 	}
-	/* #endif */
+#endif
 
 	TRACE((PLOGLOC, "ike_sa state %d\n", ike_sa->state));
 	switch (ike_sa->state) {
@@ -1657,7 +1657,7 @@ ikev2_update_child(struct ikev2_child_sa *child_sa,
 
 	ikev2_child_state_set(child_sa, IKEV2_CHILD_STATE_MATURE);
 
-	/* #if defined(__FreeBSD__) || defined(__NetBSD__) */
+#if defined(__FreeBSD__) || defined(__NetBSD__)
 	/* KAME does not generate hard lifetime expiration message */
 	/* start expiration timer */
 	{
@@ -1681,7 +1681,7 @@ ikev2_update_child(struct ikev2_child_sa *child_sa,
 				goto abort_nomem;
 		}
 	}
-	/* #endif */
+#endif
 
       done:
 	if (new_my_proposal_list)
@@ -1742,7 +1742,7 @@ ikev2_update_child(struct ikev2_child_sa *child_sa,
 	goto done;
 }
 
-/* #if defined(__FreeBSD__) || defined(__NetBSD__) */
+#if defined(__FreeBSD__) || defined(__NetBSD__)
 /*
  * timer callback for child_sa expiration
  */
@@ -1755,7 +1755,7 @@ ikev2_child_expire_callback(void *param)
 	SCHED_KILL(child_sa->timer);
 	ikev2_expire_child(child_sa);
 }
-/* #endif */
+#endif
 
 int
 ikev2_expired(struct sadb_request *req, struct rcpfk_msg *param)
@@ -1883,7 +1883,7 @@ ikev2_expire_sa(struct ikev2_child_sa *child_sa, int expire_mode,
 		}
 		return;
 	case 2:		/* hard expired */
-#if 1
+#if 0
 		/*
 		 * hard expire is not used, due to difference of KAME and USAGI.
 		 * instead, use child_sa->timer
-- 
2.24.1