- Change all strcpy() calls to strncpy() to avoid buffer overflow potential - Add ICMP host unreachable support - Logging to syslog if log_file = "syslog:facility" - Now requires libcli 1.5 - All configuration moves to a config structure - Ability to modify and write config on the fly through command-line interface - Config file support is removed, and now handled by the cli - Show hostname in cli prompt - Keep current state type for tunnels - Add uptime command do CLI, which also shows real-time bandwidth utilisation - Add goodbye command to cluster master, which forces droppping a slave - Cache IP address allocation, so that reconnecting users get the same address - Fix tunnel resend timeouts, so that dead tunnels will be cleaned up - Allocate tunnels and radius without using a linked list which had issues - Fix some off-by-one errors in tunnel and session and radius arrays - Save and reload ip address pool when dieing - Check version and size of reloaded data when restarting - Remove plugin_config support - Remove old support for TBF which didn't work anyway. HTB is required to do throttling now. - Add COPYING and Changes files
71 lines
1.6 KiB
Makefile
71 lines
1.6 KiB
Makefile
subdirs = @subdirs@
|
|
top_srcdir = @top_srcdir@
|
|
srcdir = @srcdir@
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
bindir = @bindir@
|
|
infodir = @infodir@
|
|
etcdir = @sysconfdir@
|
|
libdir = @prefix@/lib/l2tpns
|
|
|
|
CC = @CC@
|
|
CFLAGS=-Wall @CFLAGS@
|
|
LDFLAGS = @LDFLAGS@
|
|
LIBS = @LIBS@
|
|
INSTALL = @INSTALL@
|
|
DEFS = @DEFS@
|
|
|
|
OBJS= md5.o \
|
|
icmp.o \
|
|
cli.o \
|
|
l2tpns.o \
|
|
ppp.o \
|
|
radius.o \
|
|
throttle.o \
|
|
rl.o \
|
|
ll.o \
|
|
cluster.o \
|
|
cluster_slave.o \
|
|
arp.o \
|
|
constants.o \
|
|
ll.o \
|
|
control.o \
|
|
util.o \
|
|
|
|
PLUGINS=garden.so
|
|
|
|
all: l2tpns cluster_master nsctl $(PLUGINS)
|
|
|
|
l2tpns: $(OBJS)
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(DEFS)
|
|
|
|
cluster_master: cluster_master.o ll.o cluster.o util.o
|
|
$(CC) $(CFLAGS) -o $@ $^ $(DEFS)
|
|
|
|
nsctl: nsctl.o control.o
|
|
$(CC) $(CFLAGS) -o $@ $^ $(DEFS)
|
|
|
|
clean:
|
|
/bin/rm -f *.o *.so l2tpns cluster_master nsctl
|
|
|
|
distclean:
|
|
/bin/rm -f Makefile config.h config.status config.cache config.log
|
|
|
|
install: all
|
|
$(INSTALL) -D -o root -g root -m 0755 l2tpns $(bindir)/l2tpns
|
|
$(INSTALL) -D -o root -g root -m 0755 cluster_master $(bindir)/cluster_master
|
|
$(INSTALL) -D -o root -g root -m 0755 nsctl $(bindir)/nsctl
|
|
$(INSTALL) -D -o root -g root -m 0600 etc/l2tpns.cfg.default $(etcdir)/l2tpns.cfg
|
|
$(INSTALL) -D -o root -g root -m 0644 etc/ip_pool.default $(etcdir)/l2tpns.ip_pool
|
|
$(INSTALL) -D -o root -g root -m 0600 etc/users.default $(etcdir)/l2tpns.users
|
|
for PLUGIN in $(PLUGINS); do
|
|
$(INSTALL) -o root -g root -m 0755 $(PLUGIN) $(libdir)/$(PLUGIN)
|
|
done
|
|
if [ ! -e /dev/net/tun ]; then
|
|
mkdir /dev/net
|
|
mknod /dev/net/tun c 10 200
|
|
fi
|
|
|
|
%.so: %.c
|
|
$(CC) -fPIC -shared -o $@ $^ $(LDFLAGS) $(LIBS) $(LIBPATH)
|
|
|