Skip to content

Commit 9bea528

Browse files
committed
getdns_dnstap_repeater
repeating traffic from a dnstap socket to 185.49.141.38 over UDP
0 parents  commit 9bea528

File tree

6 files changed

+655
-0
lines changed

6 files changed

+655
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "dnstap.pb"]
2+
path = dnstap.pb
3+
url = [email protected]:dnstap/dnstap.pb.git

Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
PROGS = getdns_dnstap_repeater
2+
LIBS = -lgetdns -lprotobuf-c
3+
GETDNS_DNSTAP_REPEATER_OBJS = getdns_dnstap_repeater.o getdns-dnstap-fstrm.o dnstap.pb-c.o
4+
5+
all: $(PROGS)
6+
7+
.SUFFIXES: .c .o .h .proto
8+
9+
.c.o:
10+
$(CC) $(CFLAGS) -c $<
11+
12+
getdns_dnstap_repeater: $(GETDNS_DNSTAP_REPEATER_OBJS)
13+
$(CC) $(LDFLAGS) -o $@ $(GETDNS_DNSTAP_REPEATER_OBJS) $(LIBS)
14+
15+
dnstap.pb-c.o: dnstap.pb/dnstap.pb-c.c dnstap.pb/dnstap.pb-c.h
16+
$(CC) $(CFLAGS) -c dnstap.pb/dnstap.pb-c.c
17+
18+
dnstap.pb/dnstap.pb-c.c dnstap.pb/dnstap.pb-c.h: dnstap.pb/dnstap.proto
19+
protoc-c --c_out=. dnstap.pb/dnstap.proto
20+
21+
clean:
22+
rm -f $(PROGS) $(GETDNS_DNSTAP_REPEATER_OBJS) dnstap.pb/dnstap.pb-c.[ch]
23+
24+
getdns_dnstap_repeater.o: dnstap.pb/dnstap.pb-c.h

dnstap.pb

Submodule dnstap.pb added at c6a8747

0 commit comments

Comments
 (0)