diff --git a/etc/init.d/smartdns b/etc/init.d/smartdns index 4f4732e..ca6c014 100644 --- a/etc/init.d/smartdns +++ b/etc/init.d/smartdns @@ -1,4 +1,19 @@ #!/bin/sh +# +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# +# smartdns 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. +# +# smartdns 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 this program. If not, see . ### BEGIN INIT INFO # Provides: smartdns diff --git a/install b/install index 97a013c..bcb9752 100644 --- a/install +++ b/install @@ -1,7 +1,19 @@ #!/bin/sh # -# Copyright (C) 2018 Ruilin Peng (Nick) +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . # +# smartdns 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. +# +# smartdns 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 this program. If not, see . INST_DIR=$(cd $(dirname $0);pwd) ISWSL=1 # 1 means not WSL, 0 means wsl diff --git a/package/debian/DEBIAN/copyright b/package/debian/DEBIAN/copyright index 15d1a37..c9ee488 100644 --- a/package/debian/DEBIAN/copyright +++ b/package/debian/DEBIAN/copyright @@ -3,5 +3,5 @@ Upstream-Name: smartdns Source: http://github.com/pymumu/smartdns Files: * -Copyright: 2018 Nick peng +Copyright: 2018-2019 Nick peng License: proprietary diff --git a/package/debian/make.sh b/package/debian/make.sh index e18bd2d..208084b 100644 --- a/package/debian/make.sh +++ b/package/debian/make.sh @@ -1,4 +1,19 @@ -#/bin/sh +#!/bin/sh +# +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# +# smartdns 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. +# +# smartdns 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 this program. If not, see . CURR_DIR=$(cd $(dirname $0);pwd) VER="`date +"1.%Y.%m.%d-%H%M"`" diff --git a/package/luci/control/postinst b/package/luci/control/postinst index e4b3fd0..3a5aa3a 100644 --- a/package/luci/control/postinst +++ b/package/luci/control/postinst @@ -1,4 +1,20 @@ #!/bin/sh +# +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# +# smartdns 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. +# +# smartdns 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 this program. If not, see . + [ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0 [ -x ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 . ${IPKG_INSTROOT}/lib/functions.sh diff --git a/package/luci/control/prerm b/package/luci/control/prerm index baed906..0468c7a 100644 --- a/package/luci/control/prerm +++ b/package/luci/control/prerm @@ -1,4 +1,20 @@ #!/bin/sh +# +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# +# smartdns 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. +# +# smartdns 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 this program. If not, see . + [ -x ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 . ${IPKG_INSTROOT}/lib/functions.sh default_prerm $0 $@ diff --git a/package/luci/files/etc/uci-defaults/50_luci-smartdns b/package/luci/files/etc/uci-defaults/50_luci-smartdns index a3a3581..c05b86b 100644 --- a/package/luci/files/etc/uci-defaults/50_luci-smartdns +++ b/package/luci/files/etc/uci-defaults/50_luci-smartdns @@ -1,4 +1,19 @@ #!/bin/sh +# +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# +# smartdns 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. +# +# smartdns 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 this program. If not, see . uci -q batch <<-EOF >/dev/null delete ucitrack.@smartdns[-1] diff --git a/package/luci/files/luci/controller/smartdns.lua b/package/luci/files/luci/controller/smartdns.lua index 8248d41..a8bd737 100644 --- a/package/luci/files/luci/controller/smartdns.lua +++ b/package/luci/files/luci/controller/smartdns.lua @@ -1,4 +1,18 @@ --- Copyright 2018 Nick Peng (pymumu@gmail.com) +-- +-- Copyright (C) 2018-2020 Ruilin Peng (Nick) . +-- +-- smartdns 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. +-- +-- smartdns 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 this program. If not, see . module("luci.controller.smartdns", package.seeall) local smartdns = require "luci.model.smartdns" diff --git a/package/luci/files/luci/model/cbi/smartdns/smartdns.lua b/package/luci/files/luci/model/cbi/smartdns/smartdns.lua index 79bb815..c823dfd 100644 --- a/package/luci/files/luci/model/cbi/smartdns/smartdns.lua +++ b/package/luci/files/luci/model/cbi/smartdns/smartdns.lua @@ -1,4 +1,18 @@ --- Copyright 2018 Nick Peng (pymumu@gmail.com) +-- +-- Copyright (C) 2018-2020 Ruilin Peng (Nick) . +-- +-- smartdns 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. +-- +-- smartdns 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 this program. If not, see . require ("nixio.fs") require ("luci.http") diff --git a/package/luci/files/luci/model/cbi/smartdns/upstream.lua b/package/luci/files/luci/model/cbi/smartdns/upstream.lua index ad5f580..a4eb829 100644 --- a/package/luci/files/luci/model/cbi/smartdns/upstream.lua +++ b/package/luci/files/luci/model/cbi/smartdns/upstream.lua @@ -1,3 +1,19 @@ +-- +-- Copyright (C) 2018-2020 Ruilin Peng (Nick) . +-- +-- smartdns 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. +-- +-- smartdns 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 this program. If not, see . + local sid = arg[1] m = Map("smartdns", "%s - %s" %{translate("SmartDNS Server"), translate("Upstream DNS Server Configuration")}) diff --git a/package/luci/files/luci/model/smartdns.lua b/package/luci/files/luci/model/smartdns.lua index 3aaa632..ff32306 100644 --- a/package/luci/files/luci/model/smartdns.lua +++ b/package/luci/files/luci/model/smartdns.lua @@ -1,4 +1,18 @@ --- Copyright 2018 Nick Peng (pymumu@gmail.com) +-- +-- Copyright (C) 2018-2020 Ruilin Peng (Nick) . +-- +-- smartdns 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. +-- +-- smartdns 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 this program. If not, see . require ("nixio.fs") require ("luci.http") diff --git a/package/luci/make.sh b/package/luci/make.sh index 8045e40..f2a63ea 100644 --- a/package/luci/make.sh +++ b/package/luci/make.sh @@ -1,4 +1,19 @@ -#/bin/sh +#!/bin/sh +# +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# +# smartdns 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. +# +# smartdns 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 this program. If not, see . CURR_DIR=$(cd $(dirname $0);pwd) diff --git a/package/openwrt/Makefile b/package/openwrt/Makefile index ccfc411..dc1730c 100644 --- a/package/openwrt/Makefile +++ b/package/openwrt/Makefile @@ -1,3 +1,19 @@ +# +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# +# smartdns 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. +# +# smartdns 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 this program. If not, see . + include $(TOPDIR)/rules.mk PKG_NAME:=smarttdns diff --git a/package/openwrt/control/postinst b/package/openwrt/control/postinst index 00d02ed..33ab4f4 100644 --- a/package/openwrt/control/postinst +++ b/package/openwrt/control/postinst @@ -1,4 +1,19 @@ #!/bin/sh +# +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# +# smartdns 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. +# +# smartdns 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 this program. If not, see . chmod +x /usr/sbin/smartdns chmod +x /etc/init.d/smartdns diff --git a/package/openwrt/control/prerm b/package/openwrt/control/prerm index f478bd9..b615728 100644 --- a/package/openwrt/control/prerm +++ b/package/openwrt/control/prerm @@ -1,4 +1,20 @@ #!/bin/sh +# +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# +# smartdns 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. +# +# smartdns 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 this program. If not, see . + . ${IPKG_INSTROOT}/lib/functions.sh default_prerm $0 $@ rm /var/etc/smartdns.conf -f diff --git a/package/openwrt/files/etc/init.d/smartdns b/package/openwrt/files/etc/init.d/smartdns index 18aef9a..f4eabc7 100644 --- a/package/openwrt/files/etc/init.d/smartdns +++ b/package/openwrt/files/etc/init.d/smartdns @@ -1,5 +1,19 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2018 Nick Peng (pymumu@gmail.com) +# +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# +# smartdns 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. +# +# smartdns 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 this program. If not, see . START=99 NAME=smartdns diff --git a/package/openwrt/make.sh b/package/openwrt/make.sh index 6ed62d9..9ecc052 100644 --- a/package/openwrt/make.sh +++ b/package/openwrt/make.sh @@ -1,4 +1,19 @@ -#/bin/sh +#!/bin/sh +# +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# +# smartdns 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. +# +# smartdns 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 this program. If not, see . CURR_DIR=$(cd $(dirname $0);pwd) diff --git a/package/optware/S50smartdns b/package/optware/S50smartdns index 5387945..3924a4d 100644 --- a/package/optware/S50smartdns +++ b/package/optware/S50smartdns @@ -1,4 +1,19 @@ -#! /bin/sh +#!/bin/sh +# +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# +# smartdns 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. +# +# smartdns 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 this program. If not, see . SMARTDNS_BIN=/opt/usr/sbin/smartdns SMARTDNS_CONF=/opt/etc/smartdns/smartdns.conf diff --git a/package/optware/control/postinst b/package/optware/control/postinst index 1462610..4ab8f76 100644 --- a/package/optware/control/postinst +++ b/package/optware/control/postinst @@ -1,4 +1,19 @@ -#! /bin/sh +#!/bin/sh +# +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# +# smartdns 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. +# +# smartdns 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 this program. If not, see . chmod +x /opt/usr/sbin/smartdns chmod +x /opt/etc/init.d/S50smartdns diff --git a/package/optware/control/prerm b/package/optware/control/prerm index bfaa2fe..ca6bc9e 100644 --- a/package/optware/control/prerm +++ b/package/optware/control/prerm @@ -1,3 +1,18 @@ -#! /bin/sh +#!/bin/sh +# +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# +# smartdns 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. +# +# smartdns 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 this program. If not, see . /opt/etc/init.d/S50smartdns stop diff --git a/package/optware/make.sh b/package/optware/make.sh index 777ddc0..ef23a8b 100644 --- a/package/optware/make.sh +++ b/package/optware/make.sh @@ -1,4 +1,19 @@ -#/bin/sh +#!/bin/sh +# +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# +# smartdns 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. +# +# smartdns 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 this program. If not, see . CURR_DIR=$(cd $(dirname $0);pwd) VER="`date +"1.%Y.%m.%d-%H%M"`" diff --git a/src/Makefile b/src/Makefile index f03cb7e..2de823a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,19 @@ +# Copyright (C) 2018-2020 Ruilin Peng (Nick) . +# +# smartdns 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. +# +# smartdns 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 this program. If not, see . + BIN=smartdns OBJS_LIB=lib/rbtree.o lib/art.o lib/bitops.o lib/radix.o lib/conf.o OBJS=smartdns.o fast_ping.o dns_client.o dns_server.o dns.o util.o tlog.o dns_conf.o dns_cache.o http_parse.o $(OBJS_LIB) diff --git a/src/dns.c b/src/dns.c index 557d64e..7f040c3 100644 --- a/src/dns.c +++ b/src/dns.c @@ -1,6 +1,6 @@ /************************************************************************* * - * Copyright (C) 2018 Ruilin Peng (Nick) . + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . * * smartdns is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/dns.h b/src/dns.h index 66008c1..9b59dd4 100644 --- a/src/dns.h +++ b/src/dns.h @@ -1,3 +1,21 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + #ifndef _DNS_HEAD_H #define _DNS_HEAD_H diff --git a/src/dns_cache.c b/src/dns_cache.c index e73b95a..679d1bd 100644 --- a/src/dns_cache.c +++ b/src/dns_cache.c @@ -1,3 +1,21 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + #include "dns_cache.h" #include "stringutil.h" #include "tlog.h" diff --git a/src/dns_cache.h b/src/dns_cache.h index 7a5a1b2..cb11955 100644 --- a/src/dns_cache.h +++ b/src/dns_cache.h @@ -1,3 +1,21 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + #ifndef _SMARTDNS_CACHE_H #define _SMARTDNS_CACHE_H diff --git a/src/dns_client.c b/src/dns_client.c index f71330e..eccb8e8 100644 --- a/src/dns_client.c +++ b/src/dns_client.c @@ -1,6 +1,6 @@ /************************************************************************* * - * Copyright (C) 2018 Ruilin Peng (Nick) . + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . * * smartdns is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/dns_client.h b/src/dns_client.h index 2ffaea9..5610399 100644 --- a/src/dns_client.h +++ b/src/dns_client.h @@ -1,3 +1,21 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + #ifndef _SMART_DNS_CLIENT_H #define _SMART_DNS_CLIENT_H diff --git a/src/dns_conf.c b/src/dns_conf.c index a821653..cdf90cf 100644 --- a/src/dns_conf.c +++ b/src/dns_conf.c @@ -1,3 +1,21 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + #include "dns_conf.h" #include "list.h" #include "rbtree.h" diff --git a/src/dns_conf.h b/src/dns_conf.h index b5a4615..c02e3cb 100644 --- a/src/dns_conf.h +++ b/src/dns_conf.h @@ -1,3 +1,21 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + #ifndef _DNS_CONF #define _DNS_CONF diff --git a/src/dns_server.c b/src/dns_server.c index 4745683..8dba5cc 100644 --- a/src/dns_server.c +++ b/src/dns_server.c @@ -1,6 +1,6 @@ /************************************************************************* * - * Copyright (C) 2018 Ruilin Peng (Nick) . + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . * * smartdns is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,6 +15,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ + #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif diff --git a/src/dns_server.h b/src/dns_server.h index 848c843..e19f18a 100644 --- a/src/dns_server.h +++ b/src/dns_server.h @@ -1,3 +1,21 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + #ifndef _SMART_DNS_SERVER_H #define _SMART_DNS_SERVER_H diff --git a/src/fast_ping.c b/src/fast_ping.c index 19200b1..85f5206 100644 --- a/src/fast_ping.c +++ b/src/fast_ping.c @@ -1,6 +1,6 @@ /************************************************************************* * - * Copyright (C) 2018 Ruilin Peng (Nick) . + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . * * smartdns is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/fast_ping.h b/src/fast_ping.h index 3de2641..1682106 100644 --- a/src/fast_ping.h +++ b/src/fast_ping.h @@ -1,3 +1,21 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + #ifndef FAST_PING_H #define FAST_PING_H diff --git a/src/http_parse.c b/src/http_parse.c index 5dbc0de..9aa7707 100644 --- a/src/http_parse.c +++ b/src/http_parse.c @@ -1,3 +1,21 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + #include "http_parse.h" #include "hash.h" #include "hashtable.h" diff --git a/src/http_parse.h b/src/http_parse.h index c822dd7..250969e 100644 --- a/src/http_parse.h +++ b/src/http_parse.h @@ -1,3 +1,21 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + #ifndef HTTP_PARSER_H #define HTTP_PARSER_H diff --git a/src/include/atomic.h b/src/include/atomic.h index e94ed4d..037b070 100644 --- a/src/include/atomic.h +++ b/src/include/atomic.h @@ -1,3 +1,22 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + + #ifndef _GENERIC_ATOMIC_H #define _GENERIC_ATOMIC_H diff --git a/src/include/bitmap.h b/src/include/bitmap.h index 584e57d..3c3c44e 100644 --- a/src/include/bitmap.h +++ b/src/include/bitmap.h @@ -1,3 +1,22 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + + #ifndef _PERF_BITOPS_H #define _PERF_BITOPS_H diff --git a/src/include/bitops.h b/src/include/bitops.h index 7f8a6c8..e25c8fb 100644 --- a/src/include/bitops.h +++ b/src/include/bitops.h @@ -1,3 +1,22 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + + #ifndef _GENERIC_BITOPS_H_ #define _GENERIC_BITOPS_H_ diff --git a/src/include/conf.h b/src/include/conf.h index 48e4edc..8115936 100644 --- a/src/include/conf.h +++ b/src/include/conf.h @@ -1,3 +1,22 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + + #ifndef _GENERIC_CONF_H #define _GENERIC_CONF_H diff --git a/src/include/findbit.h b/src/include/findbit.h index 435c7d0..779dd08 100644 --- a/src/include/findbit.h +++ b/src/include/findbit.h @@ -1,5 +1,24 @@ -#ifndef _TOOLS_LINUX_ASM_GENERIC_BITOPS_FIND_H_ -#define _TOOLS_LINUX_ASM_GENERIC_BITOPS_FIND_H_ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + + +#ifndef _TOOLS_GENERIC_BITOPS_FIND_H_ +#define _TOOLS_GENERIC_BITOPS_FIND_H_ #ifndef find_next_bit /** @@ -74,4 +93,4 @@ extern unsigned long find_first_bit(const unsigned long *addr, unsigned long find_first_zero_bit(const unsigned long *addr, unsigned long size); #endif -#endif /*_TOOLS_LINUX_ASM_GENERIC_BITOPS_FIND_H_ */ +#endif /*_TOOLS_GENERIC_BITOPS_FIND_H_ */ diff --git a/src/include/gcc_builtin.h b/src/include/gcc_builtin.h index e5ae72d..ca40306 100644 --- a/src/include/gcc_builtin.h +++ b/src/include/gcc_builtin.h @@ -1,3 +1,22 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + + #ifndef _TOOLS_LINUX_COMPILER_H_ #define _TOOLS_LINUX_COMPILER_H_ diff --git a/src/include/hash.h b/src/include/hash.h index 27de4da..868840a 100644 --- a/src/include/hash.h +++ b/src/include/hash.h @@ -1,3 +1,22 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + + #ifndef _GENERIC_HASH_H #define _GENERIC_HASH_H diff --git a/src/include/hashtable.h b/src/include/hashtable.h index 23bd279..0764a83 100644 --- a/src/include/hashtable.h +++ b/src/include/hashtable.h @@ -1,6 +1,19 @@ -/* - * Statically sized hash table implementation - * (C) 2012 Sasha Levin +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . */ #ifndef _GENERIC_HASHTABLE_H diff --git a/src/include/jhash.h b/src/include/jhash.h index 6bbdfea..52a6cdb 100644 --- a/src/include/jhash.h +++ b/src/include/jhash.h @@ -1,3 +1,21 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + #ifndef _JHASH_H #define _JHASH_H diff --git a/src/include/list.h b/src/include/list.h index 081b463..a227a00 100644 --- a/src/include/list.h +++ b/src/include/list.h @@ -1,3 +1,20 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ #ifndef _GENERIC_LIST_H #define _GENERIC_LIST_H diff --git a/src/include/rbtree.h b/src/include/rbtree.h index 13a97e0..c89e8ee 100644 --- a/src/include/rbtree.h +++ b/src/include/rbtree.h @@ -1,3 +1,20 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ #ifndef _GENERIC_RBTREE_H #define _GENERIC_RBTREE_H diff --git a/src/include/stringutil.h b/src/include/stringutil.h index 8e01676..4d6ea6b 100644 --- a/src/include/stringutil.h +++ b/src/include/stringutil.h @@ -1,3 +1,21 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + #ifndef _GENERIC_STRING_UITL_H #define _GENERIC_STRING_UITL_H diff --git a/src/lib/bitops.c b/src/lib/bitops.c index bffefae..ec5034c 100644 --- a/src/lib/bitops.c +++ b/src/lib/bitops.c @@ -1,3 +1,20 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ #include "bitmap.h" #include "bitops.h" diff --git a/src/lib/conf.c b/src/lib/conf.c index 2b6a0be..23f2440 100644 --- a/src/lib/conf.c +++ b/src/lib/conf.c @@ -1,3 +1,21 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + #include "conf.h" #include #include diff --git a/src/lib/rbtree.c b/src/lib/rbtree.c index 591ddbd..8426cbe 100644 --- a/src/lib/rbtree.c +++ b/src/lib/rbtree.c @@ -1,3 +1,20 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ #include "rbtree.h" #include diff --git a/src/lib/stringutil.c b/src/lib/stringutil.c index e69de29..0e3c82b 100644 --- a/src/lib/stringutil.c +++ b/src/lib/stringutil.c @@ -0,0 +1,17 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ \ No newline at end of file diff --git a/src/smartdns.c b/src/smartdns.c index 31fb1bf..a763840 100644 --- a/src/smartdns.c +++ b/src/smartdns.c @@ -1,6 +1,6 @@ /************************************************************************* * - * Copyright (C) 2018 Ruilin Peng (Nick) . + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . * * smartdns is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/tlog.c b/src/tlog.c index 27cb66f..d22ff17 100644 --- a/src/tlog.c +++ b/src/tlog.c @@ -1,6 +1,6 @@ /* * tinylog - * Copyright (C) 2018-2019 Nick Peng + * Copyright (C) 2018-2020 Nick Peng * https://github.com/pymumu/tinylog */ #ifndef _GNU_SOURCE diff --git a/src/tlog.h b/src/tlog.h index 3577f95..190d0c7 100644 --- a/src/tlog.h +++ b/src/tlog.h @@ -1,6 +1,6 @@ /* * tinylog - * Copyright (C) 2018-2019 Ruilin Peng (Nick) + * Copyright (C) 2018-2020 Ruilin Peng (Nick) * https://github.com/pymumu/tinylog */ diff --git a/src/util.c b/src/util.c index 508900d..f26ec77 100644 --- a/src/util.c +++ b/src/util.c @@ -1,3 +1,21 @@ +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ + #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif diff --git a/src/util.h b/src/util.h index 9f1cd0d..95cc9d2 100644 --- a/src/util.h +++ b/src/util.h @@ -1,4 +1,20 @@ - +/************************************************************************* + * + * Copyright (C) 2018-2020 Ruilin Peng (Nick) . + * + * smartdns 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. + * + * smartdns 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 this program. If not, see . + */ #ifndef SMART_DNS_UTIL_H #define SMART_DNS_UTIL_H