Browse Source

Move program source code to src directory

pull/83/head
ValdikSS 7 years ago
parent
commit
135c97ae69
  1. 12
      src/Makefile
  2. 4
      src/blackwhitelist.c
  3. 0
      src/blackwhitelist.h
  4. 2
      src/dnsredir.c
  5. 0
      src/dnsredir.h
  6. 0
      src/goodbyedpi-rc.rc
  7. 2
      src/goodbyedpi.c
  8. 6
      src/goodbyedpi.exe.manifest
  9. 0
      src/goodbyedpi.h
  10. 0
      src/icon.ico
  11. 0
      src/service.c
  12. 0
      src/service.h
  13. 0
      src/utils/getline.c
  14. 0
      src/utils/getline.h
  15. 0
      src/utils/repl_str.c
  16. 0
      src/utils/repl_str.h
  17. 0
      src/utils/uthash.h

12
Makefile → src/Makefile

@ -2,8 +2,8 @@ ifndef MSYSTEM
CPREFIX = x86_64-w64-mingw32-
endif
WINDIVERTHEADERS = ../../include
WINDIVERTLIBS = ../binary
WINDIVERTHEADERS = ../../../include
WINDIVERTLIBS = ../../binary
TARGET = goodbyedpi.exe
LIBS = -L$(WINDIVERTLIBS) -lWinDivert -lws2_32
@ -18,8 +18,8 @@ LDFLAGS = -Wl,-O1,--sort-common,--as-needed
default: manifest $(TARGET)
all: default
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c)) goodbyedpi-rc.o
HEADERS = $(wildcard *.h)
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c utils/*.c)) goodbyedpi-rc.o
HEADERS = $(wildcard *.h utils/*.h)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
@ -30,8 +30,8 @@ manifest:
.PRECIOUS: $(TARGET) $(OBJECTS)
$(TARGET): $(OBJECTS)
$(CC) $(OBJECTS) -Wall $(LDFLAGS) $(LIBS) -s -o $@
$(CC) $(OBJECTS) $(LDFLAGS) $(LIBS) -s -o $@
clean:
-rm -f *.o
-rm -f *.o utils/*.o
-rm -f $(TARGET)

4
blackwhitelist.c → src/blackwhitelist.c

@ -8,8 +8,8 @@
#include <windows.h>
#include <stdio.h>
#include "goodbyedpi.h"
#include "uthash.h"
#include "getline.h"
#include "utils/uthash.h"
#include "utils/getline.h"
typedef struct blackwhitelist_record {
const char *host;

0
blackwhitelist.h → src/blackwhitelist.h

2
dnsredir.c → src/dnsredir.c

@ -15,7 +15,7 @@
#include <stdio.h>
#include "goodbyedpi.h"
#include "dnsredir.h"
#include "uthash.h"
#include "utils/uthash.h"
/* key ('4' for IPv4 or '6' for IPv6 + srcip[16] + srcport[2]) */
#define UDP_CONNRECORD_KEY_LEN 19

0
dnsredir.h → src/dnsredir.h

0
goodbyedpi-rc.rc → src/goodbyedpi-rc.rc

2
goodbyedpi.c → src/goodbyedpi.c

@ -13,7 +13,7 @@
#include <ws2tcpip.h>
#include "windivert.h"
#include "goodbyedpi.h"
#include "repl_str.h"
#include "utils/repl_str.h"
#include "service.h"
#include "dnsredir.h"
#include "blackwhitelist.h"

6
goodbyedpi.exe.manifest → src/goodbyedpi.exe.manifest

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="GoodbyeDPI" type="win32"/>
<description>Divert</description>
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="GoodbyeDPI" type="win32"/>
<description>GoodbyeDPI</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
@ -9,4 +9,4 @@
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
</assembly>

0
goodbyedpi.h → src/goodbyedpi.h

0
icon.ico → src/icon.ico

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
service.c → src/service.c

0
service.h → src/service.h

0
getline.c → src/utils/getline.c

0
getline.h → src/utils/getline.h

0
repl_str.c → src/utils/repl_str.c

0
repl_str.h → src/utils/repl_str.h

0
uthash.h → src/utils/uthash.h

Loading…
Cancel
Save