diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-06-19 16:45:16 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-06-19 16:45:16 +0000 |
commit | de6f05bf47366381840360db61f96fe9a7cfe61d (patch) | |
tree | 63abebffcbe7de183a341b1d19248c59a12df09e /usr.sbin/ospfd/rde.c | |
parent | ff30074cd65a4f50242e8e41615d9cd13d182986 (diff) |
add support for mapping route labels to AS-external route tags.
manpage bits from jmc@
ok norby@ claudio@
Diffstat (limited to 'usr.sbin/ospfd/rde.c')
-rw-r--r-- | usr.sbin/ospfd/rde.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/rde.c b/usr.sbin/ospfd/rde.c index aa9a09aa5ab..8b94b5dd0dc 100644 --- a/usr.sbin/ospfd/rde.c +++ b/usr.sbin/ospfd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.67 2007/06/19 14:42:09 pyr Exp $ */ +/* $OpenBSD: rde.c,v 1.68 2007/06/19 16:45:15 reyk Exp $ */ /* * Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org> @@ -718,6 +718,7 @@ rde_send_change_kroute(struct rt_node *r) kr.prefix.s_addr = r->prefix.s_addr; kr.nexthop.s_addr = rn->nexthop.s_addr; kr.prefixlen = r->prefixlen; + kr.ext_tag = r->ext_tag; imsg_compose(ibuf_main, IMSG_KROUTE_CHANGE, 0, 0, &kr, sizeof(kr)); } @@ -1126,7 +1127,7 @@ orig_asext_lsa(struct rroute *rr, u_int16_t age) lsa->data.asext.fw_addr = 0; lsa->data.asext.metric = htonl(rr->metric); - lsa->data.asext.ext_tag = 0; + lsa->data.asext.ext_tag = htonl(rr->kr.ext_tag); lsa->hdr.ls_chksum = 0; lsa->hdr.ls_chksum = |