├── .gitignore ├── .gitmodules ├── .travis.yml ├── CMakeLists.txt ├── LICENSE ├── Makefile ├── bootstrap.sh ├── conf └── shuke.toml ├── config.mk ├── doc └── static │ ├── benchmark_1_port.png │ └── benchmark_2_port.png ├── readme.md ├── src ├── admin.c ├── ae.c ├── ae.h ├── ae_epoll.c ├── ae_evport.c ├── ae_kqueue.c ├── ae_select.c ├── anet.c ├── anet.h ├── asciilogo.h ├── conf.c ├── debug.c ├── defines.h ├── dict.c ├── dict.h ├── dnspacket.c ├── dnspacket.h ├── dpdk_kni.c ├── dpdk_module.c ├── dpdk_module.h ├── edns.h ├── endianconv.h ├── fmacros.h ├── list.h ├── log.h ├── ltree.c ├── ltree.h ├── mongo.c ├── protocol.h ├── rbtree.c ├── rbtree.h ├── rculfhash-mm-socket.c ├── sds.c ├── sds.h ├── shuke.c ├── shuke.h ├── shukeassert.h ├── sk_lua.h ├── sk_lua_dns.c ├── sk_lua_log.c ├── sk_lua_util.c ├── sk_lua_var.c ├── str.c ├── str.h ├── tcpserver.c ├── testhelp.h ├── toml.c ├── toml.h ├── utils.c ├── utils.h ├── version.h ├── zmalloc.c ├── zmalloc.h ├── zone.c ├── zone.h ├── zparser.c └── zparser.h ├── tests ├── .gitignore ├── assets │ ├── example.z │ ├── full_example.z │ └── test.toml ├── requirements.txt ├── support │ ├── __init__.py │ ├── constants.py │ ├── server.py │ └── zone2mongo.py └── unit │ ├── conftest.py │ ├── test_mongo.py │ └── test_query.py ├── tools ├── admin.py ├── benchmark_plot.py ├── gen_zone_data.py ├── moongen_dns.lua └── zone2mongo.py └── vagrant ├── Vagrantfile ├── setup.sh └── test.toml /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/.gitmodules -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/.travis.yml -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/Makefile -------------------------------------------------------------------------------- /bootstrap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/bootstrap.sh -------------------------------------------------------------------------------- /conf/shuke.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/conf/shuke.toml -------------------------------------------------------------------------------- /config.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/config.mk -------------------------------------------------------------------------------- /doc/static/benchmark_1_port.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/doc/static/benchmark_1_port.png -------------------------------------------------------------------------------- /doc/static/benchmark_2_port.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/doc/static/benchmark_2_port.png -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/readme.md -------------------------------------------------------------------------------- /src/admin.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/admin.c -------------------------------------------------------------------------------- /src/ae.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/ae.c -------------------------------------------------------------------------------- /src/ae.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/ae.h -------------------------------------------------------------------------------- /src/ae_epoll.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/ae_epoll.c -------------------------------------------------------------------------------- /src/ae_evport.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/ae_evport.c -------------------------------------------------------------------------------- /src/ae_kqueue.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/ae_kqueue.c -------------------------------------------------------------------------------- /src/ae_select.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/ae_select.c -------------------------------------------------------------------------------- /src/anet.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/anet.c -------------------------------------------------------------------------------- /src/anet.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/anet.h -------------------------------------------------------------------------------- /src/asciilogo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/asciilogo.h -------------------------------------------------------------------------------- /src/conf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/conf.c -------------------------------------------------------------------------------- /src/debug.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/debug.c -------------------------------------------------------------------------------- /src/defines.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/defines.h -------------------------------------------------------------------------------- /src/dict.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/dict.c -------------------------------------------------------------------------------- /src/dict.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/dict.h -------------------------------------------------------------------------------- /src/dnspacket.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/dnspacket.c -------------------------------------------------------------------------------- /src/dnspacket.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/dnspacket.h -------------------------------------------------------------------------------- /src/dpdk_kni.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/dpdk_kni.c -------------------------------------------------------------------------------- /src/dpdk_module.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/dpdk_module.c -------------------------------------------------------------------------------- /src/dpdk_module.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/dpdk_module.h -------------------------------------------------------------------------------- /src/edns.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/edns.h -------------------------------------------------------------------------------- /src/endianconv.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/endianconv.h -------------------------------------------------------------------------------- /src/fmacros.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/fmacros.h -------------------------------------------------------------------------------- /src/list.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/list.h -------------------------------------------------------------------------------- /src/log.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/log.h -------------------------------------------------------------------------------- /src/ltree.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/ltree.c -------------------------------------------------------------------------------- /src/ltree.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/ltree.h -------------------------------------------------------------------------------- /src/mongo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/mongo.c -------------------------------------------------------------------------------- /src/protocol.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/protocol.h -------------------------------------------------------------------------------- /src/rbtree.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/rbtree.c -------------------------------------------------------------------------------- /src/rbtree.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/rbtree.h -------------------------------------------------------------------------------- /src/rculfhash-mm-socket.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/rculfhash-mm-socket.c -------------------------------------------------------------------------------- /src/sds.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/sds.c -------------------------------------------------------------------------------- /src/sds.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/sds.h -------------------------------------------------------------------------------- /src/shuke.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/shuke.c -------------------------------------------------------------------------------- /src/shuke.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/shuke.h -------------------------------------------------------------------------------- /src/shukeassert.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/shukeassert.h -------------------------------------------------------------------------------- /src/sk_lua.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/sk_lua.h -------------------------------------------------------------------------------- /src/sk_lua_dns.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/sk_lua_dns.c -------------------------------------------------------------------------------- /src/sk_lua_log.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/sk_lua_log.c -------------------------------------------------------------------------------- /src/sk_lua_util.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/sk_lua_util.c -------------------------------------------------------------------------------- /src/sk_lua_var.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/sk_lua_var.c -------------------------------------------------------------------------------- /src/str.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/str.c -------------------------------------------------------------------------------- /src/str.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/str.h -------------------------------------------------------------------------------- /src/tcpserver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/tcpserver.c -------------------------------------------------------------------------------- /src/testhelp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/testhelp.h -------------------------------------------------------------------------------- /src/toml.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/toml.c -------------------------------------------------------------------------------- /src/toml.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/toml.h -------------------------------------------------------------------------------- /src/utils.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/utils.c -------------------------------------------------------------------------------- /src/utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/utils.h -------------------------------------------------------------------------------- /src/version.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/version.h -------------------------------------------------------------------------------- /src/zmalloc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/zmalloc.c -------------------------------------------------------------------------------- /src/zmalloc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/zmalloc.h -------------------------------------------------------------------------------- /src/zone.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/zone.c -------------------------------------------------------------------------------- /src/zone.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/zone.h -------------------------------------------------------------------------------- /src/zparser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/zparser.c -------------------------------------------------------------------------------- /src/zparser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/src/zparser.h -------------------------------------------------------------------------------- /tests/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/tests/.gitignore -------------------------------------------------------------------------------- /tests/assets/example.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/tests/assets/example.z -------------------------------------------------------------------------------- /tests/assets/full_example.z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/tests/assets/full_example.z -------------------------------------------------------------------------------- /tests/assets/test.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/tests/assets/test.toml -------------------------------------------------------------------------------- /tests/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/tests/requirements.txt -------------------------------------------------------------------------------- /tests/support/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/support/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/tests/support/constants.py -------------------------------------------------------------------------------- /tests/support/server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/tests/support/server.py -------------------------------------------------------------------------------- /tests/support/zone2mongo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/tests/support/zone2mongo.py -------------------------------------------------------------------------------- /tests/unit/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/tests/unit/conftest.py -------------------------------------------------------------------------------- /tests/unit/test_mongo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/tests/unit/test_mongo.py -------------------------------------------------------------------------------- /tests/unit/test_query.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/tests/unit/test_query.py -------------------------------------------------------------------------------- /tools/admin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/tools/admin.py -------------------------------------------------------------------------------- /tools/benchmark_plot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/tools/benchmark_plot.py -------------------------------------------------------------------------------- /tools/gen_zone_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/tools/gen_zone_data.py -------------------------------------------------------------------------------- /tools/moongen_dns.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/tools/moongen_dns.lua -------------------------------------------------------------------------------- /tools/zone2mongo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/tools/zone2mongo.py -------------------------------------------------------------------------------- /vagrant/Vagrantfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/vagrant/Vagrantfile -------------------------------------------------------------------------------- /vagrant/setup.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/vagrant/setup.sh -------------------------------------------------------------------------------- /vagrant/test.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuyang0/shuke/HEAD/vagrant/test.toml --------------------------------------------------------------------------------