-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
68 changed files
with
6,923 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
BasedOnStyle: webkit | ||
IndentWidth: 4 | ||
AlignConsecutiveAssignments: true | ||
AlignConsecutiveDeclarations: true | ||
AlignOperands: true | ||
SortIncludes: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[submodule "src/pcap-thread"] | ||
path = src/pcap-thread | ||
url = https://github.com/DNS-OARC/pcap-thread.git | ||
[submodule "src/omg-dns"] | ||
path = src/omg-dns | ||
url = https://github.com/DNS-OARC/omg-dns.git | ||
[submodule "src/sllq"] | ||
path = src/sllq | ||
url = https://github.com/DNS-OARC/sllq.git | ||
[submodule "src/luajit"] | ||
path = src/luajit | ||
url = http://luajit.org/git/luajit-2.0.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright (c) 2018, OARC, Inc. | ||
# All rights reserved. | ||
# | ||
# This file is part of dnsjit. | ||
# | ||
# dnsjit is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# dnsjit is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with dnsjit. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
ACLOCAL_AMFLAGS = -I m4 -I src/pcap-thread/m4 | ||
|
||
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in \ | ||
$(srcdir)/src/config.h.in~ \ | ||
$(srcdir)/configure | ||
|
||
SUBDIRS = src | ||
|
||
dist_doc_DATA = CHANGES README.md LICENSE | ||
|
||
EXTRA_DIST = m4 | ||
|
||
test: check | ||
|
||
luaclean: | ||
$(MAKE) -C "$(srcdir)/luajit" clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
# dnsjit | ||
|
||
DNS engine based around LuaJIT for capturing, parsing, replaying and statstics gathering | ||
|
||
# Copyright | ||
|
||
Copyright (c) 2018, OARC, Inc. | ||
|
||
All rights reserved. | ||
|
||
``` | ||
This file is part of dnsjit. | ||
dnsjit is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
dnsjit is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with dnsjit. If not, see <http://www.gnu.org/licenses/>. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh -e | ||
# Copyright (c) 2018, OARC, Inc. | ||
# All rights reserved. | ||
# | ||
# This file is part of dnsjit. | ||
# | ||
# dnsjit is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# dnsjit is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with dnsjit. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
autoreconf --force --install --no-recursive --include=m4 --include=src/pcap-thread/m4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Copyright (c) 2018, OARC, Inc. | ||
# All rights reserved. | ||
# | ||
# This file is part of dnsjit. | ||
# | ||
# dnsjit is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# dnsjit is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with dnsjit. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
AC_PREREQ(2.61) | ||
AC_INIT([dnsjit], [0.9.0], [[email protected]], [dnsjit], [https://github.com/DNS-OARC/dnsjit/issues]) | ||
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) | ||
AC_CONFIG_SRCDIR([src/dnsjit.c]) | ||
AC_CONFIG_HEADER([src/config.h]) | ||
AC_CONFIG_MACRO_DIR([m4]) | ||
|
||
# Checks for programs. | ||
AC_PROG_CC | ||
AM_PROG_CC_C_O | ||
AC_CANONICAL_HOST | ||
m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) | ||
LT_INIT([disable-static]) | ||
|
||
# Checks for support. | ||
AC_CHECK_LIB([dl], [dlopen]) | ||
AC_CHECK_LIB([m], [sqrt]) | ||
AX_PTHREAD | ||
AX_PCAP_THREAD_PCAP | ||
AC_CHECK_LIB([ev], [ev_now], [], AC_MSG_ERROR([libev not found])) | ||
AC_CHECK_HEADER([ev.h], [AC_CHECK_HEADERS([ev.h])], [AC_CHECK_HEADER([libev/ev.h], [AC_CHECK_HEADERS([libev/ev.h])], [AC_MSG_ERROR([libev header not found])])]) | ||
AC_SEARCH_LIBS([clock_gettime],[rt]) | ||
AC_CHECK_FUNCS([clock_nanosleep nanosleep]) | ||
|
||
# Checks for sizes | ||
AC_CHECK_SIZEOF(void*) | ||
|
||
# Output Makefiles | ||
AC_CONFIG_FILES([ | ||
Makefile | ||
src/Makefile | ||
]) | ||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
# Copyright (c) 2018, OARC, Inc. | ||
# All rights reserved. | ||
# | ||
# This file is part of dnsjit. | ||
# | ||
# dnsjit is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# dnsjit is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with dnsjit. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
clang-format-4.0 \ | ||
-style=file \ | ||
-i \ | ||
src/*.c \ | ||
`find src/core src/input src/filter src/output -name '*.c'` \ | ||
`find src/core src/input src/filter src/output -name '*.h'` \ | ||
`find src/core src/input src/filter src/output -name '*.hh'` |
Empty file.
Oops, something went wrong.