mirror of
https://code.semirocket.science/wrapsix
synced 2026-01-04 02:26:49 +02:00
Improved creating of a socket for the resolver
Written new mechanism of wrapper from scratch in C * It listens to all ICMPv6 packets (for now) and translates them to ICMPv4 ones * It can compute the checksum of the packet as well
This commit is contained in:
24
wrapper/Makefile
Normal file
24
wrapper/Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -O0
|
||||
LDFLAGS = -L/usr/lib -lpcap
|
||||
|
||||
all: wrapper.o process.o translate_ip.o connections.o checksum.o
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) *.o -o wrapper
|
||||
|
||||
wrapper.o: wrapper.c wrapper.h
|
||||
$(CC) $(CFLAGS) -c wrapper.c -o wrapper.o
|
||||
|
||||
process.o: process.c wrapper.h translate_ip.h
|
||||
$(CC) $(CFLAGS) -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
|
||||
|
||||
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
|
||||
|
||||
clean:
|
||||
rm -f wrapper *.o
|
||||
Reference in New Issue
Block a user