summaryrefslogtreecommitdiffstats
path: root/watchlink/watchlink.cc
Commit message (Collapse)AuthorAgeFilesLines
* modified watchlink parser to support the following behaviors:Michael Larson2008-03-311-0/+4
| | | | | | | | | | | | | | | | | | | | | > comments are now allowed after the # symbol after each entry > address ranges are now supported in the matching if the user enters a netmask value, then every address within the range is exlcluded > ip value (without a mask) is treated as a /32 for matching > matching is against the masked off address value, the mask is specified by the exclusion entry (and not by the configured address value) > sig_usr1 will reload the configuration and is required after each modification of the exclude file. The format of the file is the following: [interface] [address|network] #comments Only one entry per line is allowed vifs are supported in the interface line (i.e. eth0.1w)
* added interface/address exclusion support to watchlink. The correct format is:Michael Larson2008-03-301-9/+12
| | | | | | | | | | | | | | | [interface] [interface] [ip/mask] It should also accept a plain IP--but I haven't tested this yet. Also added syslogging at the info level on interface up/down events. This change provides support for HA to work with interface cable event. HA and VRRP will need to populate the /var/linkstatus/exclude file with the VIPs under their management. In addition to circumvent an additional problem in HA there needs to be an additional address on the monitored interface, otherwise HA will admin down the interface when the cable is pulled
* Change license notice from VPL to GPLv2Stephen Hemminger2008-03-101-22/+3
| | | | Glendale is licensed under GPL version 2.
* modified watchlink to manage connected routes in local and main tables per ↵Michael Larson2008-01-281-1/+1
| | | | interface rather than pulling interface address on cable pull event.
* removed stderr message when unable to open exclusion file. Also downgraded ↵Michael Larson2008-01-171-2/+2
| | | | | | syslog entry to log_info--this file won't exist unless the cli configures link-detect to off.
* added support for ifa_address field in rtm_newaddr message and in links ↵root2008-01-151-0/+1
| | | | where the ifa_address != ifa_local then ifa_address is populated in setaddr message. fix for bug 2650
* added support for filtering of interfaces. filter or exclusion list needs to ↵Michael Larson2008-01-111-4/+54
| | | | | | | be be written to exclude file located in linstatus directory. watchlink accepts sigusr1 to reload filter without requiring restart on configuration change.
* cleaned up source a bit. added syslog error messages. added legal-eeze.Michael Larson2008-01-111-10/+46
| | | | other minor edits.
* Added quagga like features to watchlink pgm: standard pid file creation and ↵Michael Larson2008-01-101-3/+53
| | | | | | background option. Also corrected compile flags for watchlink
* initial check-in of watchlink project. compiles, runs and manages state. ↵Michael Larson2008-01-091-0/+168
needs additional testing and updates to packaging files.