check: handle notifications in sighup

sighup handler now respects quorum_up, quorum_down,
notify_up, notify_down, alpha, omega, quorum, hysteresis
configuration directives
VS_ISEQ: compare quorum_up handler values

This ensures that if quorum_up action has been changed,
it will be instantly called even if service is already UP.
In this case the service will be completely removed and applied
again as a new one.
status_code and digest may be set together

This fix is dealing with that is impossible to configure HTTP/SSL
check which needs both status_code and digest to success.
Now, if both these parameters are specified for particular check,
it is considered successive only if both match.
fix inaccuracy in VS_ISEQ macro

* double check of sched field
* compilation warning (boolean operator precedence)
hysteresis could be >= quorum now
Merge pull request #33 from andriyanov/hyst_quorum

hysteresis could be >= quorum now
Merge pull request #32 from andriyanov/http_code

status_code and digest may be set together
Merge pull request #31 from andriyanov/sighup

better SIGHUP support in checker daemon
vrrp sync group: Send prio 0 when entering FAULT state

This fix will send prio 0 (VRRP_PRIO_STOP) when the VRRP router transists from
MASTER to FAULT state. This will make a sync group leave the MASTER state more
quickly by notifying the backup router(s) instead of having them to wait for
time out.

Signed-off-by: Jonas Johansson <jonasj76@gmail.com>
Honor preempt_delay setting on startup.

This is a fix to honor the preempt_delay setting on power-up, or reboot, by
preventing a BACKUP router to transition to MASTER until its preempt timer
has expired.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
vrrp sync group: Quick sync group transition

In a sync group, when waiting for all instances to want master state, this
fix will check the instances for transition every advert interval instead of
every third. This will make a sync group transition occur more quickly.

Signed-off-by: Jonas Johansson <jonasj76@gmail.com>
Let VMAC interface flags (up/down status) follow base interface.

When using a VMAC interface, this fix will reflect the base interface flags,
i.e. up/down status, to the VMAC interface. This is useful when using sync
groups (in combination with VMAC) and a link for one of the members in the
MASTER sync group goes down. Before this fix, this member will not detect
the link fault, due to that the VMAC interface always is UP regardless of
the actual status of the base interface, and the sync group will continue to
be MASTER as if nothing has happend. This fix will however reflect the status
of the base interface onto the VMAC interface, so if the link goes down the
member will transit to FAULT state, which will make the sync group transit
to BACKUP state.

Signed-off-by: Jonas Johansson <jonasj76@gmail.com>
Fix VRRP wrong interface flags corner case

If a link event arrives between the initial scanning for interfaces and
configuration file parsing, the VRRP instance will enter an unrecoverable
state. This fix will update the interface flags even when the interface
exists, not only for the inital scan.
Note that when all is up and running the link events will be properly
handled by netlink, so this fix only fixes the special case when a link
changes state during initalization/configuration.

Signed-off-by: Jonas Johansson <jonasj76@gmail.com>
Merge pull request #36 from jonasj76/update-iface-flags

Fix VRRP wrong interface flags corner case
Merge pull request #37 from jonasj76/vmac-reflect-flags

Let VMAC interface flags (up/down status) follow base interface.
Merge pull request #35 from jonasj76/fix-preempt

Honor preempt_delay setting on startup.
Merge pull request #34 from jonasj76/quick-sync

Faster sync group transition
Replace popt with getopt

In a embedded environment you might not want to have to add yet another
library dependency. This commit refactors parse_cmdline() to use
getopt_long() instead och popt.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Signed-off-by: Jonas Johansson <jonasj76@gmail.com>
Merge pull request #40 from jonasj76/replace-popt-with-getopt

Replace popt with getopt
Version code update and vrrp netlink tweak

Updated ChangeLog and related. EyckWigo proposed to increase defaut socket buf size to handle env with lot of IP addresses, Default is now set to 64K on netlink socket.