summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-06-05 23:59:29 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-06-05 23:59:29 +0000
commit37d359daf2efdcf4a509c3570ddadb2de19aa6fe (patch)
tree72d52c509be37b7cbc2748fdd46235b3b24fb45c /usr.sbin/bgpd
parentdefc0e2a3d2c3467900c764e3700253c4994a407 (diff)
on CTL_KROUTE requests, send back both v4 and v6 routes
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/kroute.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index 4f1362b382e..a770550b590 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.132 2005/06/05 23:57:33 henning Exp $ */
+/* $OpenBSD: kroute.c,v 1.133 2005/06/05 23:59:28 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -498,12 +498,6 @@ kr_show_route(struct imsg *imsg)
if (!flags || kr->r.flags & flags)
send_imsg_session(IMSG_CTL_KROUTE,
imsg->hdr.pid, &kr->r, sizeof(kr->r));
- case IMSG_CTL_KROUTE6:
- if (imsg->hdr.len != IMSG_HEADER_SIZE + sizeof(flags)) {
- log_warnx("kr_show_route: wrong imsg len");
- return;
- }
- memcpy(&flags, imsg->data, sizeof(flags));
RB_FOREACH(kr6, kroute6_tree, &krt6)
if (!flags || kr6->r.flags & flags)
send_imsg_session(IMSG_CTL_KROUTE6,