summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_carp.c
AgeCommit message (Collapse)Author
2004-03-26don't use mbuf after free; ok mcbride, deraadt, cloderMarkus Friedl
2004-03-26Also raise advskew to 240 while we wait for pfsync to get it's bulk update.Ryan Thomas McBride
This is to deal with situations where the network is not working during boot so we become master by default - the high advskew value allows other carp boxes to preempt us when the network finally comes up. ok deraadt@ beck@
2004-03-24Correct size in error message. From mickey@Ryan Thomas McBride
ok deraadt@
2004-03-24Disable net.inet.carp.log by default.Ryan Thomas McBride
ok deraadt@
2004-03-22Support for best effort bulk transfers of states when pfsync syncif isRyan Thomas McBride
configured. This this allows pfsync+carp clusters to come up gracefully without killing active connections. pfsync now prevents carp from preempting to become master until the state table has sync'd. ABI change, any application which use struct pf_state must be recompiled. Reminded about this by Christian Gut. Thanks to beck@ cedric@ and dhartmei@ for testing and comments. ok deraadt@
2004-03-20Unbreak routing change handling for state changes; count addresses differentlyRyan Thomas McBride
depending on where we're calling carp_addrcount() from.
2004-03-18Allow the state to be changed explicitly via the ioctl.Ryan Thomas McBride
ok markus@
2004-03-10Don't permit a negative index. Pointed out by Patrick Latifi.Ryan Thomas McBride
2004-03-05Only send route add or delete messages if it's the first identicalRyan Thomas McBride
address being added or the last identical address being removed, respectively. Part of a larger diff approved by markus@ and dhartmei@, API changes held back for now.
2004-01-18send RTM_IFINFO on carp state changes; with mpf@; ok mcbride@, mpf@Markus Friedl
2004-01-15missing #ifdef INET6, ok henning@Daniel Hartmeier
2004-01-13Add and remove IPv6 routes so when we're MASTER, we can connect to theRyan Thomas McBride
common address.
2003-12-10de-register. deraadt okJun-ichiro itojun Hagino
2003-12-06Mark u_int64_t constants with ULL to make gcc3 happy.Alexander Yurchenko
ok drahn@
2003-12-03add support for ifconfig clone; ok henning deraadtMarkus Friedl
2003-11-16compile without INET6Markus Friedl
2003-11-14Don't include KAME link-local interface ID in HMAC.Ryan Thomas McBride
from itojun@
2003-11-09No need to pass an unused struct carp_softc * into carp_input_c() fromRyan Thomas McBride
carp_input() and carp6_input().
2003-11-08typos from Jonathon Gray;Jason McIntyre
2003-11-07Check to make sure that the packet was received on a carp-enabled interface.Ryan Thomas McBride
Pointed out by Marco Pfatschbacher, ok mickey@
2003-11-07Clean up carp_iamatch() behaviour so we don't reply to arp requests whenRyan Thomas McBride
the interface is ifconfig'd down. Patch from Marco Pfatschbacher
2003-11-07Add missing #ifdef INET6.Ryan Thomas McBride
Courtesy of markus@
2003-11-05Cleanups.Ryan Thomas McBride
- Remove error variable which is not needed. - Add missing /* INET6 */ comments.
2003-11-04Add carp_setroute(), add and remove routes when the carp(4) interfaceRyan Thomas McBride
enters and leaves MASTER state. Allows the system to connect to the common address when it is master. ok cedric@ henning@
2003-11-04Use MGETHDR() instead of m_gethdr()Ryan Thomas McBride
Patch from Marco Pfatschbacher (Marco_Pfatschbacher at genua dot de)
2003-11-04- Remove bogus function prototypeRyan Thomas McBride
- Put the correct address family in the BPF header Pointed out by Max Laier.
2003-11-04kill a no longer relevant todo itemMichael Shalayeff
2003-11-04Some cleanups from Andrey Matveev <andrushock@korovino.net>:Ryan Thomas McBride
- remove duplicate string; - carp_set_addr() -> carp_set_addr6() when INET6; - spacing police. Oh yeah, and we can take inet6 support off the todo list.
2003-11-03Cleanups:Ryan Thomas McBride
- missing #ifdef INET6. - fix check for interface going down in carp_send_ad(). - fix memory leak which occurs when when ifpromisc() fails. All from Max Laier, thanks.
2003-11-03spacingTheo de Raadt
2003-11-03Some KNF cleanup. There's probably more to do.Ryan Thomas McBride
2003-11-02Typo; #ifdef INET not INET6.Ryan Thomas McBride
From Max Laier.
2003-10-31Add IPv6 support to CARP.Ryan Thomas McBride
ok deraadt@
2003-10-27Skew the advertisement interval correctly when we reschedule.Ryan Thomas McBride
2003-10-27Also check if we're going down before scheduling an advertisementRyan Thomas McBride
when we fail to get an mbuf. This too is courtesy of Max Laier.
2003-10-27Actually stop sending advertisements if we're Master and the carp(4)Ryan Thomas McBride
interface is brought down. Bug reported by Max Laier.
2003-10-25precompute most of hmac; fix size for md; ok mcbrideMarkus Friedl
2003-10-23We want to hash the whole md, not just the size of the pointer.Ryan Thomas McBride
Found testing CARP between sparc and sparc64.
2003-10-22switch from keyed sha1 to hmac-sha1; ok mcbride@Markus Friedl
2003-10-20Fix endianness bug in carp_sha1_generate, hash the whole counter, andRyan Thomas McBride
fix some whitespace nits while we're here.
2003-10-20Stop all hosts from insisting they're master when preemption isRyan Thomas McBride
disabled. bug report and fix testing david@
2003-10-20Fix but with setting advskew, only error if _both_ advbase and advskew areRyan Thomas McBride
set to 0. (ifconfig sets them one at a time) tested by david@
2003-10-19more typosDavid Krause
2003-10-17Common Address Redundancy ProtocolRyan Thomas McBride
Allows multiple hosts to share an IP address, providing high availability and load balancing. Based on code by mickey@, with additional help from markus@ and Marco_Pfatschbacher@genua.de ok deraadt@