summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-12-25 23:21:37 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-12-25 23:21:37 +0000
commitace6e29365b585df8eba49386d9463030bd32a5c (patch)
treefe53d3e7f1c5d1a25598b76e35a02ceead75283e /usr.sbin
parent7d4b29a828843a81decb9f02dff1ef5911fb9b6a (diff)
nothing uses the special return value kroute_msg used to set for EEXIST any
more, so zap the special treatment for EEXIST
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/kroute.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index 8298302f89b..7342ee67a45 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.21 2003/12/25 23:15:58 henning Exp $ */
+/* $OpenBSD: kroute.c,v 1.22 2003/12/25 23:21:36 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -70,9 +70,9 @@ u_int32_t rtseq = 1;
pid_t pid;
#define F_BGPD_INSERTED 0x0001
-#define F_KERNEL 0x0002
+#define F_KERNEL 0x0002
#define F_CONNECTED 0x0004
-#define F_NEXTHOP 0x0008
+#define F_NEXTHOP 0x0008
int
kroute_init(void)
@@ -89,7 +89,6 @@ kroute_init(void)
pid = getpid();
RB_INIT(&krt);
-
kroute_fetchtable();
return (s);
@@ -136,8 +135,6 @@ retry:
} else /* nexthop invalid */
return (-1);
break;
- case EEXIST: /* connected route */
- return (-2);
default:
logit(LOG_INFO, "kroute_msg: %s", strerror(errno));
return (-1);