Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
a298e996
Commit
a298e996
authored
Aug 11, 2009
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename babel to babeld.
parent
c0f6cd1c
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
46 additions
and
44 deletions
+46
-44
CHANGES
CHANGES
+2
-1
Makefile
Makefile
+14
-14
babeld.c
babeld.c
+2
-2
babeld.h
babeld.h
+0
-0
babeld.man
babeld.man
+13
-12
config.c
config.c
+1
-1
kernel.c
kernel.c
+1
-1
kernel.h
kernel.h
+1
-1
kernel_netlink.c
kernel_netlink.c
+1
-1
kernel_socket.c
kernel_socket.c
+1
-1
local.c
local.c
+1
-1
message.c
message.c
+1
-1
neighbour.c
neighbour.c
+1
-1
net.c
net.c
+1
-1
network.c
network.c
+1
-1
resend.c
resend.c
+1
-1
route.c
route.c
+1
-1
source.c
source.c
+1
-1
util.c
util.c
+1
-1
xroute.c
xroute.c
+1
-1
No files found.
CHANGES
View file @
a298e996
babel 0.96 (unreleased)
babel
d
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.
...
...
Makefile
View file @
a298e996
...
@@ -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
=
babel
d
.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
=
babel
d
.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)
babel
d
:
$(OBJS)
$(CC)
$(CFLAGS)
$(LDFLAGS)
-o
babel
$(OBJS)
$(LDLIBS)
$(CC)
$(CFLAGS)
$(LDFLAGS)
-o
babel
d
$(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='babel
d.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
babel
d.html
:
babeld
.man
.PHONY
:
all install install.minimal uninstall clean
.PHONY
:
all install install.minimal uninstall clean
all
:
babel
babel
.man
all
:
babel
d babeld
.man
install.minimal
:
babel
install.minimal
:
babel
d
-
rm
-f
$(TARGET)$(PREFIX)
/bin/babel
-
rm
-f
$(TARGET)$(PREFIX)
/bin/babel
d
mkdir
-p
$(TARGET)$(PREFIX)
/bin
mkdir
-p
$(TARGET)$(PREFIX)
/bin
cp
-f
babel
$(TARGET)$(PREFIX)
/bin
cp
-f
babel
d
$(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
babel
d.man
$(TARGET)$(PREFIX)
/man/man8/babeld
.8
uninstall
:
uninstall
:
-
rm
-f
$(TARGET)$(PREFIX)
/bin/babel
-
rm
-f
$(TARGET)$(PREFIX)
/bin/babel
d
-
rm
-f
$(TARGET)$(PREFIX)
/man/man8/babel.8
-
rm
-f
$(TARGET)$(PREFIX)
/man/man8/babel
d
.8
clean
:
clean
:
-
rm
-f
babel
babel
.html
*
.o
*
~ core TAGS gmon.out
-
rm
-f
babel
d babeld
.html
*
.o
*
~ core TAGS gmon.out
kernel.o
:
kernel_netlink.c kernel_socket.c
kernel.o
:
kernel_netlink.c kernel_socket.c
babel.c
→
babel
d
.c
View file @
a298e996
...
@@ -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 "babel
d
.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/babel
d
.pid"
;
unsigned
char
*
receive_buffer
=
NULL
;
unsigned
char
*
receive_buffer
=
NULL
;
int
receive_buffer_size
=
0
;
int
receive_buffer_size
=
0
;
...
...
babel.h
→
babel
d
.h
View file @
a298e996
File moved
babel.man
→
babel
d
.man
View file @
a298e996
.TH BABEL 8
.TH BABEL
D
8
.SH NAME
.SH NAME
babel \- ad-hoc network routing daemon
babel
d
\- ad-hoc network routing daemon
.SH SYNOPSIS
.SH SYNOPSIS
.B babel
.B babel
d
.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 babel
d
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/babel
d
.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
# babel
d
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
# babel
d
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 \\
# babel
d
\\
\-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 \\
# babel
d
\\
\-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/babel
d
.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
...
...
config.c
View file @
a298e996
...
@@ -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 "babel
d
.h"
#include "util.h"
#include "util.h"
#include "network.h"
#include "network.h"
#include "config.h"
#include "config.h"
...
...
kernel.c
View file @
a298e996
...
@@ -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 "babel
d
.h"
#ifdef __APPLE__
#ifdef __APPLE__
#include "kernel_socket.c"
#include "kernel_socket.c"
...
...
kernel.h
View file @
a298e996
...
@@ -21,7 +21,7 @@ THE SOFTWARE.
...
@@ -21,7 +21,7 @@ THE SOFTWARE.
*/
*/
#include <netinet/in.h>
#include <netinet/in.h>
#include "babel.h"
#include "babel
d
.h"
#define KERNEL_INFINITY 0xFFFF
#define KERNEL_INFINITY 0xFFFF
...
...
kernel_netlink.c
View file @
a298e996
...
@@ -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 "babel
d
.h"
#include "kernel.h"
#include "kernel.h"
#include "util.h"
#include "util.h"
#include "network.h"
#include "network.h"
...
...
kernel_socket.c
View file @
a298e996
...
@@ -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 "babel
d
.h"
#include "neighbour.h"
#include "neighbour.h"
#include "kernel.h"
#include "kernel.h"
#include "util.h"
#include "util.h"
...
...
local.c
View file @
a298e996
...
@@ -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 "babel
d
.h"
#include "network.h"
#include "network.h"
#include "source.h"
#include "source.h"
#include "neighbour.h"
#include "neighbour.h"
...
...
message.c
View file @
a298e996
...
@@ -27,7 +27,7 @@ THE SOFTWARE.
...
@@ -27,7 +27,7 @@ THE SOFTWARE.
#include <arpa/inet.h>
#include <arpa/inet.h>
#include "babel.h"
#include "babel
d
.h"
#include "util.h"
#include "util.h"
#include "net.h"
#include "net.h"
#include "network.h"
#include "network.h"
...
...
neighbour.c
View file @
a298e996
...
@@ -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 "babel
d
.h"
#include "util.h"
#include "util.h"
#include "network.h"
#include "network.h"
#include "neighbour.h"
#include "neighbour.h"
...
...
net.c
View file @
a298e996
...
@@ -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 "babel
d
.h"
#include "util.h"
#include "util.h"
#include "net.h"
#include "net.h"
...
...
network.c
View file @
a298e996
...
@@ -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 "babel
d
.h"
#include "util.h"
#include "util.h"
#include "kernel.h"
#include "kernel.h"
#include "network.h"
#include "network.h"
...
...
resend.c
View file @
a298e996
...
@@ -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 "babel
d
.h"
#include "util.h"
#include "util.h"
#include "neighbour.h"
#include "neighbour.h"
#include "resend.h"
#include "resend.h"
...
...
route.c
View file @
a298e996
...
@@ -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 "babel
d
.h"
#include "util.h"
#include "util.h"
#include "kernel.h"
#include "kernel.h"
#include "network.h"
#include "network.h"
...
...
source.c
View file @
a298e996
...
@@ -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 "babel
d
.h"
#include "util.h"
#include "util.h"
#include "source.h"
#include "source.h"
#include "network.h"
#include "network.h"
...
...
util.c
View file @
a298e996
...
@@ -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 "babel
d
.h"
#include "util.h"
#include "util.h"
unsigned
unsigned
...
...
xroute.c
View file @
a298e996
...
@@ -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 "babel
d
.h"
#include "kernel.h"
#include "kernel.h"
#include "neighbour.h"
#include "neighbour.h"
#include "message.h"
#include "message.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment