From de795cdff551d444fb76c2b190eac80680b2ca65 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Tue, 8 Jan 2008 20:50:30 +0000 Subject: fix in length and nullcypher (still not working) --- Makefile | 9 ++++++++- anytun.cpp | 4 ++-- cypher.cpp | 2 +- keyexchange/isakmpd_20041012-4.dsc | 18 +----------------- keyexchange/isakmpd_20041012.orig.tar.gz | Bin 373941 -> 0 bytes 5 files changed, 12 insertions(+), 21 deletions(-) delete mode 100644 keyexchange/isakmpd_20041012.orig.tar.gz diff --git a/Makefile b/Makefile index 9e5c414..3ba33b4 100644 --- a/Makefile +++ b/Makefile @@ -78,7 +78,7 @@ OBJS = anytun.o \ EXECUTABLE = anytun -all: $(EXECUTABLE) +all: $(EXECUTABLE) libAnysync.a anytun: $(OBJS) $(LD) $(OBJS) -o $@ $(LDFLAGS) @@ -170,6 +170,13 @@ router.o: router.cpp router.h anytun.o: anytun.cpp $(C++) $(CCFLAGS) $< -c +cConnectionParam.o: cConnectionParam.cpp + $(C++) $(CCFLAGS) $< -c + +libAnysync.a: $(OBJS) + ar cru $@ $(OBJS) + ranlib $@ + clean: rm -f *.o rm -f $(EXECUTABLE) diff --git a/anytun.cpp b/anytun.cpp index 8d2f1ac..3ef2389 100644 --- a/anytun.cpp +++ b/anytun.cpp @@ -141,12 +141,12 @@ void* sender(void* p) u_int16_t mux = 0; while(1) { - packet.setLength( packet.getSize() ); - plain_packet.setLength( plain_packet.getSize() ); + plain_packet.setLength( 1600); // read packet from device u_int32_t len = param->dev.read(plain_packet); plain_packet.setLength(len); + packet.setLength( packet.getSize() ); if( param->cl.empty()) continue; diff --git a/cypher.cpp b/cypher.cpp index 71f064d..d5ca35b 100644 --- a/cypher.cpp +++ b/cypher.cpp @@ -44,7 +44,7 @@ void NullCypher::cypher(Buffer& out, Buffer& in, u_int32_t length, seq_nr_t seq_ { try { - for(u_int32_t i; i= 5), libkeynote-dev, libssl-dev, libgmp3-dev, libpcap-dev, linux-kernel-headers Files: - e6d25a9e232fb186e1a48dc06453bd57 373941 isakmpd_20041012.orig.tar.gz - 3256d8ef06f5e26649651760c0750726 32679 isakmpd_20041012-4.diff.gz - ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.5 (GNU/Linux) - -iQEVAwUBRP6sIMP9a9GOLSE6AQJQ5Qf+JpIWbwjsD2KJs+hxJmdjqDV440JpxMpQ -SZdAP0jFnw9zBQe/L06k7c3aSG/DH3yJJt8yuyWoArUi1EOBPEk6c42WkuaAU86T -kDT8XE8lLYXFQOv1hm4Wl9VIo/rydLk3Hx+grwXi6g6H92xHqz8NdDLtO/dpYri6 -XjrwLEjJeeGnPOI/STEIhB7oym4+gmXCS7WVTXM+AOJ1b2tTf+vBmDnRLc8kj+LN -8Gseni1gWr00KHtxndCuHugtDOG8aPeCELrYk4uelacj/9aB2vzViQOb6WMYrnQS -I8DPuSjOfArPxa1wthq4GDCiEX6bqi1wbtC3qsPaoxBj/OBw1Qjjbw== -=WdrG ------END PGP SIGNATURE----- + 18da456d6c39773a5670dc18918cafc8 775980 isakmpd_20041012-4.tar.gz diff --git a/keyexchange/isakmpd_20041012.orig.tar.gz b/keyexchange/isakmpd_20041012.orig.tar.gz deleted file mode 100644 index 4997fbf..0000000 Binary files a/keyexchange/isakmpd_20041012.orig.tar.gz and /dev/null differ -- cgit v1.2.3