chiark
/
gitweb
/
~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Keepalive option: Start trying to rekey as soon as peer shuts down
[secnet]
/
site.c
diff --git
a/site.c
b/site.c
index db78d5f4ed27001d300951fa77784597096169ba..b83919c3b4467bc484a5a18fbea78373d6920044 100644
(file)
--- a/
site.c
+++ b/
site.c
@@
-1147,6
+1147,10
@@
static bool_t process_msg0(struct site *st, struct buffer_if *msg0,
case LABEL_MSG7:
/* We must forget about the current session. */
delete_keys(st,"request from peer",LOG_SEC);
case LABEL_MSG7:
/* We must forget about the current session. */
delete_keys(st,"request from peer",LOG_SEC);
+ /* probably, the peer is shutting down, and this is going to fail,
+ * but we need to be trying to bring the link up again */
+ if (st->keepalive)
+ initiate_key_setup(st,"peer requested key teardown",0);
return True;
case LABEL_MSG9:
/* Deliver to netlink layer */
return True;
case LABEL_MSG9:
/* Deliver to netlink layer */