gcc-7 with -Os makes inline functions disappeard. It are caused by
the new C11 inline semantics. pass option -fgnu89-inline to gcc let
it use gnu inline semantics.
see https://wiki.debian.org/GCC7#Porting_help
bandwidthd.o: In function `RCDF_Load':
bandwidthd.c:(.text+0xb33): undefined reference to `FindIp'
bandwidthd.o: In function `PacketCallback':
bandwidthd.c:(.text+0x11d0): undefined reference to `FindIp'
bandwidthd.c:(.text+0x11e2): undefined reference to `Credit'
bandwidthd.c:(.text+0x11ea): undefined reference to `FindIp'
bandwidthd.c:(.text+0x11fc): undefined reference to `Credit'
bandwidthd.c:(.text+0x1218): undefined reference to `FindIp'
bandwidthd.c:(.text+0x122a): undefined reference to `Credit'
bandwidthd.c:(.text+0x1232): undefined reference to `FindIp'
bandwidthd.c:(.text+0x1244): undefined reference to `Credit'
collect2: error: ld returned 1 exit status
Makefile:20: recipe for target 'bandwidthd' failed
make[4]: *** [bandwidthd] Error 1
Signed-off-by: Guo Li <uxgood.org@gmail.com>
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git
(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
Addition of sqlite storage
Tracking of SMTP traffic instead of P2P traffic
Based on NethServer bandwidthd implementation
Signed-off-by: Jean-Michel lacroix <lacroix@lepine-lacroix.info>
This is a small fix to allow the package to compile with gcc5
Addition of the -std=gnu89 CFLAGS.
Small correction of the copyright date of file bandwidthd.init
Signed-off-by: Jean-Michel Lacroix <lacroix@lepine-lacroix.info>
Addition of the bandwidthd-pgsql package variant that can save also
in a postgres database.
Modification of bandwidthd.config to have the default IP address
of an OpenWrt router (192.168.1.1)
Addition of a small OpenWrt logo in the logo.gif
Compile tested on CC and trunk (ar71xx and mvebu in both cases)
run tested on CC (ar71xx) and trunk (r47397 on mvebu)
Signed-off-by: Jean-Michel Lacroix <lacroix@lepine-lacroix.info>