diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2004-04-26 09:35:40 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2004-04-26 09:35:40 +0000 |
commit | cdbfc97159f36439e647d02962c2945d39ca1576 (patch) | |
tree | 90f5781be498b10491532dd09e57a022976b9c75 /usr.sbin/bgpd/session.c | |
parent | 945bbc7cafeb49852788bfd615d0d1c5b3148492 (diff) |
load ipsec SAs into the kernel and enable them.
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r-- | usr.sbin/bgpd/session.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index e8c65192ff6..cd3bf3356c5 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.151 2004/04/26 01:43:13 henning Exp $ */ +/* $OpenBSD: session.c,v 1.152 2004/04/26 09:35:39 markus Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -450,11 +450,11 @@ bgp_fsm(struct peer *peer, enum session_events event) msgbuf_init(&peer->wbuf); /* init pfkey */ - if (pfkey_auth_establish(peer) == -1) { + if (pfkey_establish(peer) == -1) { log_peer_warnx(&peer->conf, - "pfkey_auth setup failed"); + "pfkey setup failed"); return; - } + } if (peer->conf.passive || peer->conf.template) { change_state(peer, STATE_ACTIVE, event); @@ -720,7 +720,7 @@ change_state(struct peer *peer, enum session_state state, msgbuf_clear(&peer->wbuf); free(peer->rbuf); peer->rbuf = NULL; - pfkey_auth_remove(peer); + pfkey_remove(peer); if (peer->state == STATE_ESTABLISHED) session_down(peer); if (event != EVNT_STOP && !peer->conf.cloned) { |