mirror of
https://code.semirocket.science/wrapsix
synced 2025-12-28 10:16:48 +02:00
Backward translation of ICMP traffic
Fixed mistake in field type in pseudo-IPv6 header Bundled a library for red-black trees (storage mechanism is based on it)
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -O0
|
||||
CFLAGS = -Wall -O0 -g
|
||||
LDFLAGS = -L/usr/lib -lpcap
|
||||
INCLUDE = -Ilib
|
||||
|
||||
all: wrapper.o process.o translate_ip.o connections.o checksum.o if.o
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) *.o -o wrapper
|
||||
all: wrapper.o process.o translate_ip.o connections.o checksum.o if.o storage.o lib/jsw_rbtree.o
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) *.o lib/*.o -o wrapper
|
||||
|
||||
wrapper.o: wrapper.c wrapper.h
|
||||
$(CC) $(CFLAGS) -c wrapper.c -o wrapper.o
|
||||
$(CC) $(CFLAGS) $(INCLUDE) -c wrapper.c -o wrapper.o
|
||||
|
||||
process.o: process.c wrapper.h translate_ip.h
|
||||
$(CC) $(CFLAGS) -c process.c -o process.o
|
||||
$(CC) $(CFLAGS) $(INCLUDE) -c process.c -o process.o
|
||||
|
||||
translate_ip.o: translate_ip.c translate_ip.h wrapper.h
|
||||
$(CC) $(CFLAGS) -c translate_ip.c -o translate_ip.o
|
||||
@@ -18,10 +19,17 @@ connections.o: connections.c wrapper.h
|
||||
$(CC) $(CFLAGS) -c connections.c -o connections.o
|
||||
|
||||
checksum.o: checksum.c
|
||||
$(CC) $(CFLAGS) -c checksum.c -o checksum.o
|
||||
$(CC) $(CFLAGS) -c checksum.c -o checksum.o
|
||||
|
||||
if.o: if.c wrapper.h
|
||||
$(CC) $(CFLAGS) -c if.c -o if.o
|
||||
|
||||
storage.o: storage.c storage.h
|
||||
$(CC) $(CFLAGS) $(INCLUDE) -c storage.c -o storage.o
|
||||
|
||||
# libraries
|
||||
lib/jsw_rbtree.o: lib/jsw_rbtree.c lib/jsw_rbtree.h
|
||||
$(CC) $(CFLAGS) -c lib/jsw_rbtree.c -o lib/jsw_rbtree.o
|
||||
|
||||
clean:
|
||||
rm -f wrapper *.o
|
||||
rm -f wrapper *.o lib/*.o
|
||||
|
||||
Reference in New Issue
Block a user