diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-05-12 08:55:40 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-05-12 08:55:40 +0000 |
commit | bcbe4b13eb93b6f2d9d53233186733d2079af903 (patch) | |
tree | 51e7d66bde8ccd5865426aaf8545a0be5c05a690 /usr.sbin/ospfd/ospfd.h | |
parent | 1a3b287a0be3f9277039b96380699269417b27b7 (diff) |
If activly connected to more than one area set B flag in the self-originated
router LSA. To do that correctly we need to track the number of active
neighbors for each area. If the routers ABR status changes all router LSA
need to be updated via orig_rtr_lsa_all().
OK norby@
Diffstat (limited to 'usr.sbin/ospfd/ospfd.h')
-rw-r--r-- | usr.sbin/ospfd/ospfd.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/ospfd.h b/usr.sbin/ospfd/ospfd.h index 06eb2b6fbc5..62d366660cc 100644 --- a/usr.sbin/ospfd/ospfd.h +++ b/usr.sbin/ospfd/ospfd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfd.h,v 1.27 2005/04/27 11:27:28 claudio Exp $ */ +/* $OpenBSD: ospfd.h,v 1.28 2005/05/12 08:55:39 claudio Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -163,6 +163,7 @@ struct area { u_int32_t stub_default_cost; u_int32_t num_spf_calc; u_int32_t dead_interval; + int active; u_int16_t transmit_delay; u_int16_t hello_interval; u_int16_t rxmt_interval; @@ -348,6 +349,7 @@ struct ospfd_conf { int redistribute_flags; int options; /* OSPF options */ u_int8_t rfc1583compat; + u_int8_t border; }; /* kroute */ @@ -452,6 +454,8 @@ void show_config(struct ospfd_conf *xconf); struct area *area_new(void); int area_del(struct area *); struct area *area_find(struct ospfd_conf *, struct in_addr); +void area_track(struct area *, int); +int area_border_router(struct ospfd_conf *); /* buffer.c */ struct buf *buf_open(size_t); |