summaryrefslogtreecommitdiffstats
path: root/watchlink
Commit message (Collapse)AuthorAgeFilesLines
* add locking to prevent file update problemsdebian/0.99.9-4Stephen Hemminger2008-04-031-1/+19
| | | | | The vyatta-interfaces script needs to update the linkstatus file, so locking is needed to prevent concurrent read/update problems.
* fix build on on 64 bit platformsStephen Hemminger2008-04-032-2/+2
| | | | | | Use proper include files so watchlink can be built on 64 bit platforms. Not strictly necessary yet, since vyatta isn't doing 64 bit builds, but some development machines run 64 bit OS.
* add wildcard for interfaces. use an "*" in place of an interface name--and ↵Michael Larson2008-03-311-2/+1
| | | | | | the address provided will exclude all matching addresses across all ethernet addresses.
* modified watchlink parser to support the following behaviors:Michael Larson2008-03-314-2/+57
| | | | | | | | | | | | | | | | | | | | | > 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-306-17/+91
| | | | | | | | | | | | | | | [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
* support 64bitMichael Larson2008-03-201-1/+1
|
* And with the correct licensing headers.Michael Larson2008-03-171-22/+3
|
* revert behavior for watchlink to pulling/pushing address on interface on ↵Michael Larson2008-03-171-6/+38
| | | | IFF_RUNNING|IFF_UP event.
* Change license notice from VPL to GPLv2Stephen Hemminger2008-03-1011-242/+33
| | | | Glendale is licensed under GPL version 2.
* modified watchlink to manage connected routes in local and main tables per ↵Michael Larson2008-01-2811-62/+284
| | | | interface rather than pulling interface address on cable pull event.
* moved some stderr messages to syslog. removed stderr message when receiving ↵Michael Larson2008-01-221-3/+6
| | | | ack from kernel on netlink msg.
* need to qualify test for non-ethernet type interfaces to newlink/dellink ↵Michael Larson2008-01-211-1/+2
| | | | messages only.
* fix for bc addr and fix for parsing iface for show cmds and filterMichael Larson2008-01-212-2/+46
|
* fix for ppp--restrict watchlink to ethernet interface types only. Filter by ↵root2008-01-183-5/+10
| | | | checking the ifi_type flag in ifinfomsg hdr from netlink.
* fix bug introduced with ptp support--indexing of database and initialization ↵Michael Larson2008-01-174-5/+5
| | | | of terminating address.
* 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.
* fix for bug 2648--downgraded some syslog messages and removed some from console.root2008-01-151-8/+8
|
* added support for ifa_address field in rtm_newaddr message and in links ↵root2008-01-156-13/+36
| | | | 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-113-4/+73
| | | | | | | 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-1111-17/+345
| | | | 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
* removed unnecessary files.Michael Larson2008-01-092-325/+0
|
* initial check-in of watchlink project. compiles, runs and manages state. ↵Michael Larson2008-01-0914-0/+1793
needs additional testing and updates to packaging files.