summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/session.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-04-28 00:38:40 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-04-28 00:38:40 +0000
commit4cd1fd0df592abf3f95171c4dbabdaf46789d581 (patch)
tree957e729280bedebe662323fab80373b368cd1c35 /usr.sbin/bgpd/session.c
parent6f8c06f8ef514939747639afb8d5cbd5b1b553e6 (diff)
prefix the auth related defines by AUTH_, we had a name clash, markus ok
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r--usr.sbin/bgpd/session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index bab8a4c558d..9164b24ec14 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.158 2004/04/27 22:42:13 henning Exp $ */
+/* $OpenBSD: session.c,v 1.159 2004/04/28 00:38:39 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -795,7 +795,7 @@ session_accept(int listenfd)
return;
}
}
- if (p->conf.auth.method == MD5SIG) {
+ if (p->conf.auth.method == AUTH_MD5SIG) {
len = sizeof(opt);
if (getsockopt(connfd, IPPROTO_TCP, TCP_MD5SIG,
&opt, &len) == -1)
@@ -844,7 +844,7 @@ session_connect(struct peer *peer)
return (-1);
}
- if (peer->conf.auth.method == MD5SIG)
+ if (peer->conf.auth.method == AUTH_MD5SIG)
if (setsockopt(peer->sock, IPPROTO_TCP, TCP_MD5SIG,
&opt, sizeof(opt)) == -1) {
log_peer_warn(&peer->conf, "setsockopt md5sig");