Commit a298e996 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Rename babel to babeld.

parent c0f6cd1c
babel 0.96 (unreleased) babeld 0.96 (unreleased)
* Renamed babel to babeld.
* Routes are now automatically flushed when an interface goes down or an * Routes are now automatically flushed when an interface goes down or an
IPv4 address changes, which avoids desynchronisation between Babel and IPv4 address changes, which avoids desynchronisation between Babel and
the kernel. the kernel.
......
...@@ -8,44 +8,44 @@ CFLAGS = $(CDEBUGFLAGS) $(DEFINES) $(EXTRA_DEFINES) ...@@ -8,44 +8,44 @@ CFLAGS = $(CDEBUGFLAGS) $(DEFINES) $(EXTRA_DEFINES)
LDLIBS = -lrt LDLIBS = -lrt
SRCS = babel.c net.c kernel.c util.c network.c source.c neighbour.c \ SRCS = babeld.c net.c kernel.c util.c network.c source.c neighbour.c \
route.c xroute.c message.c resend.c config.c local.c route.c xroute.c message.c resend.c config.c local.c
OBJS = babel.o net.o kernel.o util.o network.o source.o neighbour.o \ OBJS = babeld.o net.o kernel.o util.o network.o source.o neighbour.o \
route.o xroute.o message.o resend.o config.o local.o route.o xroute.o message.o resend.o config.o local.o
babel: $(OBJS) babeld: $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o babel $(OBJS) $(LDLIBS) $(CC) $(CFLAGS) $(LDFLAGS) -o babeld $(OBJS) $(LDLIBS)
.SUFFIXES: .man .html .SUFFIXES: .man .html
.man.html: .man.html:
rman -f html $< | \ rman -f html $< | \
sed -e "s|<a href='babel.8'|<a href=\"babel.html\"|" \ sed -e "s|<a href='babeld.8'|<a href=\"babeld.html\"|" \
-e "s|<a href='\\(ahcp[-a-z]*\\).8'|<a href=\"../ahcp/\1.html\"|" \ -e "s|<a href='\\(ahcp[-a-z]*\\).8'|<a href=\"../ahcp/\1.html\"|" \
-e "s|<a href='[^']*8'>\\(.*(8)\\)</a>|\1|" \ -e "s|<a href='[^']*8'>\\(.*(8)\\)</a>|\1|" \
> $@ > $@
babel.html: babel.man babeld.html: babeld.man
.PHONY: all install install.minimal uninstall clean .PHONY: all install install.minimal uninstall clean
all: babel babel.man all: babeld babeld.man
install.minimal: babel install.minimal: babeld
-rm -f $(TARGET)$(PREFIX)/bin/babel -rm -f $(TARGET)$(PREFIX)/bin/babeld
mkdir -p $(TARGET)$(PREFIX)/bin mkdir -p $(TARGET)$(PREFIX)/bin
cp -f babel $(TARGET)$(PREFIX)/bin cp -f babeld $(TARGET)$(PREFIX)/bin
install: install.minimal all install: install.minimal all
mkdir -p $(TARGET)$(PREFIX)/man/man8 mkdir -p $(TARGET)$(PREFIX)/man/man8
cp -f babel.man $(TARGET)$(PREFIX)/man/man8/babel.8 cp -f babeld.man $(TARGET)$(PREFIX)/man/man8/babeld.8
uninstall: uninstall:
-rm -f $(TARGET)$(PREFIX)/bin/babel -rm -f $(TARGET)$(PREFIX)/bin/babeld
-rm -f $(TARGET)$(PREFIX)/man/man8/babel.8 -rm -f $(TARGET)$(PREFIX)/man/man8/babeld.8
clean: clean:
-rm -f babel babel.html *.o *~ core TAGS gmon.out -rm -f babeld babeld.html *.o *~ core TAGS gmon.out
kernel.o: kernel_netlink.c kernel_socket.c kernel.o: kernel_netlink.c kernel_socket.c
...@@ -38,7 +38,7 @@ THE SOFTWARE. ...@@ -38,7 +38,7 @@ THE SOFTWARE.
#include <net/if.h> #include <net/if.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include "babel.h" #include "babeld.h"
#include "util.h" #include "util.h"
#include "net.h" #include "net.h"
#include "kernel.h" #include "kernel.h"
...@@ -66,7 +66,7 @@ int wireless_hello_interval = -1; ...@@ -66,7 +66,7 @@ int wireless_hello_interval = -1;
int wired_hello_interval = -1; int wired_hello_interval = -1;
int idle_hello_interval = -1; int idle_hello_interval = -1;
int do_daemonise = 0; int do_daemonise = 0;
char *logfile = NULL, *pidfile = "/var/run/babel.pid"; char *logfile = NULL, *pidfile = "/var/run/babeld.pid";
unsigned char *receive_buffer = NULL; unsigned char *receive_buffer = NULL;
int receive_buffer_size = 0; int receive_buffer_size = 0;
......
.TH BABEL 8 .TH BABELD 8
.SH NAME .SH NAME
babel \- ad-hoc network routing daemon babeld \- ad-hoc network routing daemon
.SH SYNOPSIS .SH SYNOPSIS
.B babel .B babeld
.IR option ... .IR option ...
[ [
.B \-\- .B \-\-
...@@ -26,7 +26,7 @@ Specify the UDP port number to be used by the protocol. ...@@ -26,7 +26,7 @@ Specify the UDP port number to be used by the protocol.
.BI \-S " state-file" .BI \-S " state-file"
Set the name of the file used for preserving long-term information Set the name of the file used for preserving long-term information
between invocations of the between invocations of the
.B babel .B babeld
daemon. If this file is deleted, the daemon will run in passive mode daemon. If this file is deleted, the daemon will run in passive mode
for 3 minutes when it is next started (see for 3 minutes when it is next started (see
.B -P .B -P
...@@ -79,7 +79,8 @@ Listen for connections from a front-end on port ...@@ -79,7 +79,8 @@ Listen for connections from a front-end on port
.IR port . .IR port .
.TP .TP
.BI \-t " table" .BI \-t " table"
Use the given kernel routing table for routes inserted by Babel. Use the given kernel routing table for routes inserted by
.BR babeld .
.TP .TP
.BI \-T " table" .BI \-T " table"
Export routes from the given kernel routing table. Export routes from the given kernel routing table.
...@@ -102,7 +103,7 @@ otherwise. ...@@ -102,7 +103,7 @@ otherwise.
.TP .TP
.BI \-I " pidfile" .BI \-I " pidfile"
Specify a file to write our process id to. The default is Specify a file to write our process id to. The default is
.BR /var/run/babel.pid . .BR /var/run/babeld.pid .
.TP .TP
.IR interface ... .IR interface ...
The list of interfaces on which the protocol should operate. The list of interfaces on which the protocol should operate.
...@@ -249,7 +250,7 @@ is not specified, it defaults to ...@@ -249,7 +250,7 @@ is not specified, it defaults to
.BR allow . .BR allow .
By default, By default,
.B Babel .B babeld
redistributes all local addresses, and no other routes. In order to redistributes all local addresses, and no other routes. In order to
make sure that only the routes you specify are redistributed, you make sure that only the routes you specify are redistributed, you
should include the line should include the line
...@@ -260,7 +261,7 @@ as the last line in your configuration file. ...@@ -260,7 +261,7 @@ as the last line in your configuration file.
.SH EXAMPLES .SH EXAMPLES
You can participate in a Babel network by simply running You can participate in a Babel network by simply running
.IP .IP
# babel wlan0 # babeld wlan0
.PP .PP
where where
.B wlan0 .B wlan0
...@@ -269,18 +270,18 @@ is the name of your wireless interface. ...@@ -269,18 +270,18 @@ is the name of your wireless interface.
In order to gateway between multiple interfaces, just list them all on In order to gateway between multiple interfaces, just list them all on
the command line: the command line:
.IP .IP
# babel wlan0 eth0 sit1 # babeld wlan0 eth0 sit1
.PP .PP
On an access point, you'll probably want to redistribute some external On an access point, you'll probably want to redistribute some external
routes into Babel: routes into Babel:
.IP .IP
# babel \\ # babeld \\
\-C 'redistribute metric 256' \\ \-C 'redistribute metric 256' \\
wlan0 wlan0
.PP .PP
or, if you want to constrain the routes that you redistribute, or, if you want to constrain the routes that you redistribute,
.IP .IP
# babel \\ # babeld \\
\-C 'redistribute proto 11 ip ::/0 le 64 metric 256' \\ \-C 'redistribute proto 11 ip ::/0 le 64 metric 256' \\
\-C 'redistribute proto 11 ip 0.0.0.0/0 le 24 metric 256' \\ \-C 'redistribute proto 11 ip 0.0.0.0/0 le 24 metric 256' \\
wlan0 wlan0
...@@ -292,7 +293,7 @@ The default location of the configuration file. ...@@ -292,7 +293,7 @@ The default location of the configuration file.
.B /var/lib/babel\-state .B /var/lib/babel\-state
The default location of the file storing long-term state. The default location of the file storing long-term state.
.TP .TP
.B /var/run/babel.pid .B /var/run/babeld.pid
The default location of the pid file. The default location of the pid file.
.TP .TP
.B /var/log/babel.log .B /var/log/babel.log
......
...@@ -24,7 +24,7 @@ THE SOFTWARE. ...@@ -24,7 +24,7 @@ THE SOFTWARE.
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include "babel.h" #include "babeld.h"
#include "util.h" #include "util.h"
#include "network.h" #include "network.h"
#include "config.h" #include "config.h"
......
...@@ -23,7 +23,7 @@ THE SOFTWARE. ...@@ -23,7 +23,7 @@ THE SOFTWARE.
#include <sys/time.h> #include <sys/time.h>
#include <time.h> #include <time.h>
#include "babel.h" #include "babeld.h"
#ifdef __APPLE__ #ifdef __APPLE__
#include "kernel_socket.c" #include "kernel_socket.c"
......
...@@ -21,7 +21,7 @@ THE SOFTWARE. ...@@ -21,7 +21,7 @@ THE SOFTWARE.
*/ */
#include <netinet/in.h> #include <netinet/in.h>
#include "babel.h" #include "babeld.h"
#define KERNEL_INFINITY 0xFFFF #define KERNEL_INFINITY 0xFFFF
......
...@@ -46,7 +46,7 @@ THE SOFTWARE. ...@@ -46,7 +46,7 @@ THE SOFTWARE.
#define RTA_TABLE 15 #define RTA_TABLE 15
#endif #endif
#include "babel.h" #include "babeld.h"
#include "kernel.h" #include "kernel.h"
#include "util.h" #include "util.h"
#include "network.h" #include "network.h"
......
...@@ -41,7 +41,7 @@ THE SOFTWARE. ...@@ -41,7 +41,7 @@ THE SOFTWARE.
#include <net/if_dl.h> #include <net/if_dl.h>
#include <net/route.h> #include <net/route.h>
#include "babel.h" #include "babeld.h"
#include "neighbour.h" #include "neighbour.h"
#include "kernel.h" #include "kernel.h"
#include "util.h" #include "util.h"
......
...@@ -26,7 +26,7 @@ THE SOFTWARE. ...@@ -26,7 +26,7 @@ THE SOFTWARE.
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include "babel.h" #include "babeld.h"
#include "network.h" #include "network.h"
#include "source.h" #include "source.h"
#include "neighbour.h" #include "neighbour.h"
......
...@@ -27,7 +27,7 @@ THE SOFTWARE. ...@@ -27,7 +27,7 @@ THE SOFTWARE.
#include <arpa/inet.h> #include <arpa/inet.h>
#include "babel.h" #include "babeld.h"
#include "util.h" #include "util.h"
#include "net.h" #include "net.h"
#include "network.h" #include "network.h"
......
...@@ -26,7 +26,7 @@ THE SOFTWARE. ...@@ -26,7 +26,7 @@ THE SOFTWARE.
#include <sys/time.h> #include <sys/time.h>
#include <time.h> #include <time.h>
#include "babel.h" #include "babeld.h"
#include "util.h" #include "util.h"
#include "network.h" #include "network.h"
#include "neighbour.h" #include "neighbour.h"
......
...@@ -30,7 +30,7 @@ THE SOFTWARE. ...@@ -30,7 +30,7 @@ THE SOFTWARE.
#include <netinet/in.h> #include <netinet/in.h>
#include <errno.h> #include <errno.h>
#include "babel.h" #include "babeld.h"
#include "util.h" #include "util.h"
#include "net.h" #include "net.h"
......
...@@ -29,7 +29,7 @@ THE SOFTWARE. ...@@ -29,7 +29,7 @@ THE SOFTWARE.
#include <net/if.h> #include <net/if.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include "babel.h" #include "babeld.h"
#include "util.h" #include "util.h"
#include "kernel.h" #include "kernel.h"
#include "network.h" #include "network.h"
......
...@@ -25,7 +25,7 @@ THE SOFTWARE. ...@@ -25,7 +25,7 @@ THE SOFTWARE.
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include "babel.h" #include "babeld.h"
#include "util.h" #include "util.h"
#include "neighbour.h" #include "neighbour.h"
#include "resend.h" #include "resend.h"
......
...@@ -26,7 +26,7 @@ THE SOFTWARE. ...@@ -26,7 +26,7 @@ THE SOFTWARE.
#include <errno.h> #include <errno.h>
#include <assert.h> #include <assert.h>
#include "babel.h" #include "babeld.h"
#include "util.h" #include "util.h"
#include "kernel.h" #include "kernel.h"
#include "network.h" #include "network.h"
......
...@@ -24,7 +24,7 @@ THE SOFTWARE. ...@@ -24,7 +24,7 @@ THE SOFTWARE.
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "babel.h" #include "babeld.h"
#include "util.h" #include "util.h"
#include "source.h" #include "source.h"
#include "network.h" #include "network.h"
......
...@@ -32,7 +32,7 @@ THE SOFTWARE. ...@@ -32,7 +32,7 @@ THE SOFTWARE.
#include <sys/socket.h> #include <sys/socket.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include "babel.h" #include "babeld.h"
#include "util.h" #include "util.h"
unsigned unsigned
......
...@@ -27,7 +27,7 @@ THE SOFTWARE. ...@@ -27,7 +27,7 @@ THE SOFTWARE.
#include <assert.h> #include <assert.h>
#include <netinet/in.h> #include <netinet/in.h>
#include "babel.h" #include "babeld.h"
#include "kernel.h" #include "kernel.h"
#include "neighbour.h" #include "neighbour.h"
#include "message.h" #include "message.h"
......
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