diff options
author | Andrew J. Schorr <ajschorr@alumni.princeton.edu> | 2006-05-21 06:04:49 +0200 |
---|---|---|
committer | Andrew J. Schorr <ajschorr@alumni.princeton.edu> | 2006-05-21 06:04:49 +0200 |
commit | 9c37851eac4e75cda515761cae7c63309add30ea (patch) | |
tree | 3fcf98573c83f117f1e0219fcab8e160af70e56a /lib/if.h | |
parent | [interface configuration] Preserve flag indicating address was set by quagga. (diff) | |
download | frr-9c37851eac4e75cda515761cae7c63309add30ea.tar.xz frr-9c37851eac4e75cda515761cae7c63309add30ea.zip |
[interface configuration] Try to avoid losing address info after shutdown.
2006-05-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* if.h: (struct connected) Document the meaning of the
ZEBRA_IFC_REAL and ZEBRA_IFC_CONFIGURED flags.
* connected.c: (connected_withdraw) Do not delete the connected
address if the ZEBRA_IFC_CONFIGURED flag is set.
(connected_add_ipv4,connected_add_ipv6) Before calling
connected_withdraw, unset the ZEBRA_IFC_CONFIGURED flag
on the superseded connected structure.
Diffstat (limited to 'lib/if.h')
-rw-r--r-- | lib/if.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -145,6 +145,12 @@ struct connected u_char conf; #define ZEBRA_IFC_REAL (1 << 0) #define ZEBRA_IFC_CONFIGURED (1 << 1) + /* + The ZEBRA_IFC_REAL flag should be set if and only if this address + exists in the kernel. + The ZEBRA_IFC_CONFIGURED flag should be set if and only if this address + was configured by the user from inside quagga. + */ /* Flags for connected address. */ u_char flags; |