Commit 105d45fa by Christophe Massiot

new VRRP-like multilive program

parent b846ff1a
......@@ -13,12 +13,13 @@ OBJ_REORDERTP = reordertp.o util.o
OBJ_OFFSETS = offsets.o util.o
OBJ_LASTS = lasts.o
OBJ_MULTICAT_VALIDATE = multicat_validate.o util.o
OBJ_MULTILIVE = multilive.o util.o
PREFIX ?= /usr/local
BIN = $(DESTDIR)/$(PREFIX)/bin
MAN = $(DESTDIR)/$(PREFIX)/share/man/man1
all: multicat ingests aggregartp reordertp offsets lasts multicat_validate
all: multicat ingests aggregartp reordertp offsets lasts multicat_validate multilive
$(OBJ_MULTICAT): Makefile util.h
$(OBJ_INGESTS): Makefile util.h
......@@ -27,6 +28,7 @@ $(OBJ_REORDERTP): Makefile util.h
$(OBJ_OFFSETS): Makefile util.h
$(OBJ_LASTS): Makefile
$(OBJ_MULTICAT_VALIDATE): Makefile util.h
$(OBJ_MULTILIVE): Makefile util.h
multicat: $(OBJ_MULTICAT)
$(CC) -o $@ $(OBJ_MULTICAT) $(LDLIBS)
......@@ -49,17 +51,20 @@ lasts: $(OBJ_LASTS)
multicat_validate: $(OBJ_MULTICAT_VALIDATE)
$(CC) -o $@ $(OBJ_MULTICAT_VALIDATE) $(LDLIBS)
multilive: $(OBJ_MULTILIVE)
$(CC) -o $@ $(OBJ_MULTILIVE) $(LDLIBS)
clean:
-rm -f multicat $(OBJ_MULTICAT) ingests $(OBJ_INGESTS) aggregartp $(OBJ_AGGREGARTP) reordertp $(OBJ_REORDERTP) offsets $(OBJ_OFFSETS) lasts $(OBJ_LASTS) multicat_validate $(OBJ_MULTICAT_VALIDATE)
-rm -f multicat $(OBJ_MULTICAT) ingests $(OBJ_INGESTS) aggregartp $(OBJ_AGGREGARTP) reordertp $(OBJ_REORDERTP) offsets $(OBJ_OFFSETS) lasts $(OBJ_LASTS) multicat_validate $(OBJ_MULTICAT_VALIDATE) multilive $(OBJ_MULTILIVE)
install: all
@install -d $(BIN)
@install -d $(MAN)
@install multicat ingests aggregartp reordertp offsets lasts multicat_validate $(BIN)
@install multicat ingests aggregartp reordertp offsets lasts multicat_validate multilive $(BIN)
@install multicat.1 ingests.1 aggregartp.1 reordertp.1 offsets.1 lasts.1 $(MAN)
uninstall:
@rm $(BIN)/multicat $(BIN)/ingests $(BIN)/aggregartp $(BIN)/reordertp $(BIN)/offsets $(BIN)/lasts $(BIN)/multicat_validate
@rm $(BIN)/multicat $(BIN)/ingests $(BIN)/aggregartp $(BIN)/reordertp $(BIN)/offsets $(BIN)/lasts $(BIN)/multicat_validate $(BIN)/multilive
@rm $(MAN)/multicat.1 $(MAN)/ingests.1 $(MAN)/aggregartp.1 $(MAN)/reordertp.1 $(MAN)/offsets.1 $(MAN)/lasts.1
dist:
......
Changes between 2.2 and 2.3:
----------------------------
* New VRRP-like implementation multilive
* Fix potential segfault in aggregartp
* Do not do retx in reordertp with multicast inputs
* Add support for null weights in aggregartp and reordertp
......
......@@ -214,3 +214,16 @@ reordertp @239.1.0.1:5004 239.254.0.1:5004 -X @:5006/tcp
aggregartp @239.255.0.1:5004 239.1.0.1:5004 -X 192.168.0.2:5006/tcp
(with TCP the listener must be started before the other)
Using multilive
===============
Running a master at priority 1000 on multicast address 239.255.255.255:1025:
multilive -y 1000 @239.255.255.255:1025 239.255.255.255:1025
Running another master on a different machine at a higher priority (who will
preempt the other master):
multilive -y 1001 @239.255.255.255:1025 239.255.255.255:1025
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment