diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-01-13 06:02:38 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-01-13 06:02:38 +0000 |
commit | f7dc5a43a2813528a29cf1f348f2dc7f8b2a8007 (patch) | |
tree | 7146043c6ec9fa4ef51b234ad5bb14f95df43c1d /usr.sbin/bgpd/control.c | |
parent | d884599c475af69f65221b06c870569754dbbf05 (diff) |
Add support for BGP MPLS VPN aka RFC 4364. This is only the RDE part so
that it is possible to use OpenBGPD as a route-reflector for VPNv4.
Some clean up of the BGP MP code so that multiple protocols are easier
supported. kroute/kernel support not yet done but comming.
OK henning@, reyk@
Diffstat (limited to 'usr.sbin/bgpd/control.c')
-rw-r--r-- | usr.sbin/bgpd/control.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/control.c b/usr.sbin/bgpd/control.c index a91f1636ab0..a7430a63885 100644 --- a/usr.sbin/bgpd/control.c +++ b/usr.sbin/bgpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.67 2009/12/08 15:54:50 jsg Exp $ */ +/* $OpenBSD: control.c,v 1.68 2010/01/13 06:02:37 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -404,8 +404,7 @@ control_dispatch_msg(struct pollfd *pfd, u_int *ctl_cnt) break; } if ((imsg.hdr.type == IMSG_CTL_SHOW_RIB_PREFIX) - && (ribreq->prefix.aid != AID_INET) - && (ribreq->prefix.aid != AID_INET6)) { + && (ribreq->prefix.aid == AID_UNSPEC)) { /* malformed request, must specify af */ control_result(c, CTL_RES_PARSE_ERROR); break; |