diff options
author | hasso <hasso> | 2004-09-14 13:54:30 +0000 |
---|---|---|
committer | hasso <hasso> | 2004-09-14 13:54:30 +0000 |
commit | 13aa7e5250c352c39a19d5f26cf3903a62bafd52 (patch) | |
tree | 3d773d5d778f3b6313f5ee2984493ef27c8c998b /isisd/isis_zebra.c | |
parent | f605bbc2e306e321585e5ac7b019ebf601b4b42f (diff) | |
download | quagga-13aa7e5250c352c39a19d5f26cf3903a62bafd52.tar.bz2 quagga-13aa7e5250c352c39a19d5f26cf3903a62bafd52.tar.xz |
Isisd is now able to remove addresses from circuit and trigger LSP updates
if it's done. Some random fixes as well and update to sample configuration.
Diffstat (limited to 'isisd/isis_zebra.c')
-rw-r--r-- | isisd/isis_zebra.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/isisd/isis_zebra.c b/isisd/isis_zebra.c index ad5a0507..e2f1dc59 100644 --- a/isisd/isis_zebra.c +++ b/isisd/isis_zebra.c @@ -199,6 +199,8 @@ isis_zebra_if_address_del (int command, struct zclient *client, { struct connected *c; struct interface *ifp; + struct prefix *p; + u_char buf[BUFSIZ]; c = zebra_interface_address_read (ZEBRA_INTERFACE_ADDRESS_DELETE, zclient->ibuf); @@ -208,9 +210,20 @@ isis_zebra_if_address_del (int command, struct zclient *client, ifp = c->ifp; - connected_free (c); +#ifdef EXTREME_DEBUG + p = c->address; + prefix2str (p, buf, BUFSIZ); + + if (p->family == AF_INET) + zlog_info ("disconnected IP address %s", buf); +#ifdef HAVE_IPV6 + if (p->family == AF_INET6) + zlog_info ("disconnected IPv6 address %s", buf); +#endif /* HAVE_IPV6 */ +#endif /* EXTREME_DEBUG */ isis_circuit_del_addr (circuit_scan_by_ifp (ifp), c); + connected_free (c); return 0; } |