Gleb Smirnoff 24421c1c32 Resolve source address selection in presense of CARP. Add a couple
of helper functions:

- carp_master()   - boolean function which is true if an address
		    is in the MASTER state.
- ifa_preferred() - boolean function that compares two addresses,
		    and is aware of CARP.

  Utilize ifa_preferred() in ifa_ifwithnet().

  The previous version of patch also changed source address selection
logic in jails using carp_master(), but we failed to negotiate this part
with Bjoern. May be we will approach this problem again later.

Reported & tested by:	Anton Yuzhaninov <citrin citrin.ru>
Sponsored by:		Nginx, Inc
2013-02-11 10:58:22 +00:00
..
2013-02-09 21:36:14 +00:00
2013-02-11 07:48:57 +00:00
2013-02-09 06:39:28 +00:00
2013-02-09 06:31:22 +00:00
2012-12-28 09:19:49 +00:00
2013-01-17 19:03:24 +00:00
2013-02-09 04:13:45 +00:00
2013-02-11 08:20:21 +00:00
2013-02-10 19:27:17 +00:00