summaryrefslogtreecommitdiffstats
path: root/watchlink/netlink_event.cc
Commit message (Collapse)AuthorAgeFilesLines
* fix build on on 64 bit platformsStephen Hemminger2008-04-031-1/+1
| | | | | | 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.
* modified watchlink parser to support the following behaviors:Michael Larson2008-03-311-0/+32
| | | | | | | | | | | | | | | | | | | | | > 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-1/+1
| | | | | | | | | | | | | | | [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
|
* 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-6/+9
| | | | 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.
* fix for bc addr and fix for parsing iface for show cmds and filterMichael Larson2008-01-211-2/+1
|
* fix for ppp--restrict watchlink to ethernet interface types only. Filter by ↵root2008-01-181-4/+4
| | | | checking the ifi_type flag in ifinfomsg hdr from netlink.
* fix bug introduced with ptp support--indexing of database and initialization ↵Michael Larson2008-01-171-1/+1
| | | | of terminating address.
* added support for ifa_address field in rtm_newaddr message and in links ↵root2008-01-151-2/+9
| | | | where the ifa_address != ifa_local then ifa_address is populated in setaddr message. fix for bug 2650
* cleaned up source a bit. added syslog error messages. added legal-eeze.Michael Larson2008-01-111-7/+35
| | | | other minor edits.
* initial check-in of watchlink project. compiles, runs and manages state. ↵Michael Larson2008-01-091-0/+282
needs additional testing and updates to packaging files.