#!/bin/sh

opennhrpctl purge nbma $REMOTE_ADDR local-nbma $LOCAL_ADDR

#!/bin/sh

# Purge opennhrp entries only if this was the last ISAKMP phase1
if [ -z "`racoonctl -ll show-sa isakmp | grep "$LOCAL_ADDR\.[0-9]* * $REMOTE_ADDR\.[0-9]* "`" ]; then
	opennhrpctl purge nbma $REMOTE_ADDR local-nbma $LOCAL_ADDR
fi

Purge opennhrp entries only when the last phase1 expires.
Purge opennhrp entries only when the last phase1 expires.

