diff options
Diffstat (limited to 'net/zebra/patches/patch-cg')
-rw-r--r-- | net/zebra/patches/patch-cg | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net/zebra/patches/patch-cg b/net/zebra/patches/patch-cg new file mode 100644 index 00000000000..8c4a1ab083c --- /dev/null +++ b/net/zebra/patches/patch-cg @@ -0,0 +1,23 @@ +$NetBSD: patch-cg,v 1.1.2.2 2002/08/25 21:20:54 jlam Exp $ + +diff -u1 ospf6d/ospf6_lsa.c /home/itojun/work/zebra/zebra/ospf6d/ospf6_lsa.c +--- ospf6d/ospf6_lsa.c Mon Jul 8 22:31:02 2002 ++++ /home/itojun/work/zebra/zebra/ospf6d/ospf6_lsa.c Sat Aug 3 21:06:08 2002 +@@ -777,2 +777,3 @@ + struct ospf6_lsdb *lsdb = NULL; ++ void (*hook) (struct ospf6_lsa *, struct ospf6_lsa *); + +@@ -806,8 +807,7 @@ + +-#if 0 +- if (lsdb->hook) +- (*lsdb->hook) (lsa, NULL); +-#else /*0*/ +- CALL_REMOVE_HOOK (&database_hook, lsa); +-#endif /*0*/ ++ /* call LSDB hook to re-process LSA */ ++ hook = ospf6_lsdb_hook[ntohs (lsa->header->type) & ++ OSPF6_LSTYPE_CODE_MASK].hook; ++ if (hook) ++ (*hook) (NULL, lsa); + |