summaryrefslogtreecommitdiffstats
path: root/bfdd/bfd.h
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2019-10-11 21:13:24 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2019-10-11 21:13:24 +0200
commitced291deb79f04ba7f6e17a0bbbc88fd95c47598 (patch)
treeb15e7813f6f602ece09618ffb5dc96782939cb83 /bfdd/bfd.h
parentbfdd: set session down after disabling it (diff)
downloadfrr-ced291deb79f04ba7f6e17a0bbbc88fd95c47598.tar.xz
frr-ced291deb79f04ba7f6e17a0bbbc88fd95c47598.zip
bfdd: simplify session observers code
Don't be selective about what to observe, always observe all possible aspects of the session that may change on run-time (i.e. bind address, interface and VRF existence). Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'bfdd/bfd.h')
-rw-r--r--bfdd/bfd.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/bfdd/bfd.h b/bfdd/bfd.h
index cdec78d12..a9c8bd183 100644
--- a/bfdd/bfd.h
+++ b/bfdd/bfd.h
@@ -274,12 +274,8 @@ struct bfd_state_str_list {
struct bfd_session_observer {
struct bfd_session *bso_bs;
- bool bso_isinterface;
- bool bso_isaddress;
- union {
- char bso_entryname[MAXNAMELEN];
- struct prefix bso_addr;
- };
+ char bso_entryname[MAXNAMELEN];
+ struct prefix bso_addr;
TAILQ_ENTRY(bfd_session_observer) bso_entry;
};