mirror of https://github.com/PurpleI2P/i2pd.git
Browse Source
* 'master' of github-meeh420:orignal/i2pd: delete unreachable SSU sessions show number sent/received bytes through the status page resend fixed memory leak close connection to first hop of declined tunnel process extended data handle individaul bitfields ack Moving file list to a common one. Still in makefile format, but now with CPP/H as input instead of OBJECTS. Issue #82 Removing Qt build file. Issue #82 create inbound tunnel though outbound Makefile now detects which file to use (OSX or Linux) Issue #82 Prepare support for POST/PUT close SSU session if not established send ack per fragment. temporary disble check for duplicated through IV fixed memory leak save out-of-sequence fragmentspull/93/head
Meeh
10 years ago
18 changed files with 474 additions and 293 deletions
@ -0,0 +1,33 @@ |
|||||||
|
|
||||||
|
CC = g++ |
||||||
|
CFLAGS = -g -Wall -std=c++0x |
||||||
|
include filelist.mk |
||||||
|
INCFLAGS = |
||||||
|
LDFLAGS = -Wl,-rpath,/usr/local/lib -lcryptopp -lboost_system -lboost_filesystem -lboost_regex -lboost_program_options -lpthread |
||||||
|
LIBS = |
||||||
|
|
||||||
|
#check if AES-NI is supported by CPU
|
||||||
|
ifneq ($(shell grep -c aes /proc/cpuinfo),0) |
||||||
|
CPU_FLAGS = -DAESNI |
||||||
|
endif |
||||||
|
|
||||||
|
all: obj i2p |
||||||
|
|
||||||
|
i2p: $(OBJECTS:obj/%=obj/%) |
||||||
|
$(CC) -o $@ $^ $(LDFLAGS) $(LIBS) |
||||||
|
|
||||||
|
.SUFFIXES: |
||||||
|
.SUFFIXES: .c .cc .C .cpp .o |
||||||
|
|
||||||
|
obj/%.o : %.cpp |
||||||
|
$(CC) -o $@ $< -c $(CFLAGS) $(INCFLAGS) $(CPU_FLAGS) |
||||||
|
|
||||||
|
obj: |
||||||
|
mkdir -p obj |
||||||
|
|
||||||
|
clean: |
||||||
|
rm -fr obj i2p |
||||||
|
|
||||||
|
.PHONY: all |
||||||
|
.PHONY: clean |
||||||
|
|
@ -1,85 +0,0 @@ |
|||||||
TEMPLATE = app |
|
||||||
CONFIG += console |
|
||||||
CONFIG -= app_bundle |
|
||||||
CONFIG -= qt |
|
||||||
|
|
||||||
TARGET = ./../../i2pd_qt |
|
||||||
|
|
||||||
QMAKE_CXXFLAGS += -std=c++0x |
|
||||||
|
|
||||||
LIBS += -lcrypto++ |
|
||||||
LIBS += \ |
|
||||||
-lboost_system\ |
|
||||||
-lboost_filesystem\ |
|
||||||
-lboost_regex\ |
|
||||||
-lboost_program_options\ |
|
||||||
-lpthread |
|
||||||
|
|
||||||
SOURCES += \ |
|
||||||
../LeaseSet.cpp \ |
|
||||||
../i2p.cpp \ |
|
||||||
../HTTPServer.cpp \ |
|
||||||
../HTTPProxy.cpp \ |
|
||||||
../Garlic.cpp \ |
|
||||||
../base64.cpp \ |
|
||||||
../AddressBook.cpp \ |
|
||||||
../util.cpp \ |
|
||||||
../UPnP.cpp \ |
|
||||||
../TunnelPool.cpp \ |
|
||||||
../TunnelGateway.cpp \ |
|
||||||
../TunnelEndpoint.cpp \ |
|
||||||
../Tunnel.cpp \ |
|
||||||
../Transports.cpp \ |
|
||||||
../TransitTunnel.cpp \ |
|
||||||
../Streaming.cpp \ |
|
||||||
../SSU.cpp \ |
|
||||||
../RouterInfo.cpp \ |
|
||||||
../RouterContext.cpp \ |
|
||||||
../Reseed.cpp \ |
|
||||||
../NTCPSession.cpp \ |
|
||||||
../NetDb.cpp \ |
|
||||||
../Log.cpp \ |
|
||||||
../Identity.cpp \ |
|
||||||
../I2NPProtocol.cpp \ |
|
||||||
../SOCKS.cpp |
|
||||||
|
|
||||||
HEADERS += \ |
|
||||||
../LeaseSet.h \ |
|
||||||
../Identity.h \ |
|
||||||
../HTTPServer.h \ |
|
||||||
../HTTPProxy.h \ |
|
||||||
../hmac.h \ |
|
||||||
../Garlic.h \ |
|
||||||
../ElGamal.h \ |
|
||||||
../CryptoConst.h \ |
|
||||||
../base64.h \ |
|
||||||
../AddressBook.h \ |
|
||||||
../util.h \ |
|
||||||
../UPnP.h \ |
|
||||||
../TunnelPool.h \ |
|
||||||
../TunnelGateway.h \ |
|
||||||
../TunnelEndpoint.h \ |
|
||||||
../TunnelConfig.h \ |
|
||||||
../TunnelBase.h \ |
|
||||||
../Tunnel.h \ |
|
||||||
../Transports.h \ |
|
||||||
../TransitTunnel.h \ |
|
||||||
../Timestamp.h \ |
|
||||||
../Streaming.h \ |
|
||||||
../SSU.h \ |
|
||||||
../RouterInfo.h \ |
|
||||||
../RouterContext.h \ |
|
||||||
../Reseed.h \ |
|
||||||
../Queue.h \ |
|
||||||
../NTCPSession.h \ |
|
||||||
../NetDb.h \ |
|
||||||
../Log.h \ |
|
||||||
../LittleBigEndian.h \ |
|
||||||
../I2PEndian.h \ |
|
||||||
../I2NPProtocol.h \ |
|
||||||
../SOCKS.h |
|
||||||
|
|
||||||
OTHER_FILES += \ |
|
||||||
../README.md \ |
|
||||||
../Makefile \ |
|
||||||
../LICENSE |
|
@ -0,0 +1,18 @@ |
|||||||
|
|
||||||
|
|
||||||
|
CPP_FILES := CryptoConst.cpp base64.cpp NTCPSession.cpp RouterInfo.cpp Transports.cpp \
|
||||||
|
RouterContext.cpp NetDb.cpp LeaseSet.cpp Tunnel.cpp TunnelEndpoint.cpp TunnelGateway.cpp \
|
||||||
|
TransitTunnel.cpp I2NPProtocol.cpp Log.cpp Garlic.cpp HTTPServer.cpp Streaming.cpp Identity.cpp \
|
||||||
|
SSU.cpp util.cpp Reseed.cpp DaemonLinux.cpp SSUData.cpp i2p.cpp aes.cpp SOCKS.cpp UPnP.cpp \
|
||||||
|
TunnelPool.cpp HTTPProxy.cpp AddressBook.cpp Daemon.cpp |
||||||
|
|
||||||
|
|
||||||
|
H_FILES := CryptoConst.h base64.h NTCPSession.h RouterInfo.h Transports.h \
|
||||||
|
RouterContext.h NetDb.h LeaseSet.h Tunnel.h TunnelEndpoint.h TunnelGateway.h \
|
||||||
|
TransitTunnel.h I2NPProtocol.h Log.h Garlic.h HTTPServer.h Streaming.h Identity.h \
|
||||||
|
SSU.h util.h Reseed.h DaemonLinux.h SSUData.h i2p.h aes.h SOCKS.h UPnP.h TunnelPool.h \
|
||||||
|
HTTPProxy.h AddressBook.h Daemon.h |
||||||
|
|
||||||
|
|
||||||
|
OBJECTS = $(addprefix obj/, $(notdir $(CPP_FILES:.cpp=.o))) |
||||||
|
|
Loading…
Reference in new issue