代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/third_party_iptables 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Copyright (c) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build/ohos.gni")
config("iptables_config") {
cflags = [
"-D_LARGEFILE_SOURCE=1",
"-D_LARGE_FILES",
"-D_FILE_OFFSET_BITS=64",
"-D_REENTRANT",
"-DENABLE_IPV4",
"-DENABLE_IPV6",
"-Wall",
"-Wno-error",
"-Wno-pointer-arith",
"-Wno-sign-compare",
"-Wno-unused-parameter",
"-Wno-missing-field-initializers",
"-Wno-parentheses-equality",
"-DNO_SHARED_LIBS=1",
"-DALL_INCLUSIVE",
"-DXTABLES_INTERNAL",
]
}
ohos_executable("iptables") {
sources = [
"//third_party/iptables/iptables/ip6tables-standalone.c",
"//third_party/iptables/iptables/ip6tables.c",
"//third_party/iptables/iptables/iptables-restore.c",
"//third_party/iptables/iptables/iptables-save.c",
"//third_party/iptables/iptables/iptables-standalone.c",
"//third_party/iptables/iptables/iptables-xml.c",
"//third_party/iptables/iptables/iptables.c",
"//third_party/iptables/iptables/xshared.c",
"//third_party/iptables/iptables/xtables-legacy-multi.c",
]
include_dirs = [
"//third_party/iptables",
"//third_party/iptables/extensions",
"//third_party/iptables/include",
"//third_party/iptables/iptables",
"//third_party/iptables/libiptc",
]
license_file = "//third_party/iptables/COPYING"
configs = [ ":iptables_config" ]
install_enable = true
deps = [
"//third_party/iptables/extensions:libext",
"//third_party/iptables/extensions:libext4",
"//third_party/iptables/extensions:libext6",
"//third_party/iptables/libiptc:libip4tc",
"//third_party/iptables/libiptc:libip6tc",
"//third_party/iptables/libxtables:libxtables",
]
part_name = "netmanager_base"
subsystem_name = "communication"
}
ohos_executable("iptables-save") {
sources = [
"//third_party/iptables/iptables/ip6tables-standalone.c",
"//third_party/iptables/iptables/ip6tables.c",
"//third_party/iptables/iptables/iptables-restore.c",
"//third_party/iptables/iptables/iptables-save.c",
"//third_party/iptables/iptables/iptables-standalone.c",
"//third_party/iptables/iptables/iptables-xml.c",
"//third_party/iptables/iptables/iptables.c",
"//third_party/iptables/iptables/xshared.c",
"//third_party/iptables/iptables/xtables-legacy-multi.c",
]
include_dirs = [
"//third_party/iptables",
"//third_party/iptables/extensions",
"//third_party/iptables/include",
"//third_party/iptables/iptables",
"//third_party/iptables/libiptc",
]
configs = [ ":iptables_config" ]
install_enable = true
deps = [
"//third_party/iptables/extensions:libext",
"//third_party/iptables/extensions:libext4",
"//third_party/iptables/extensions:libext6",
"//third_party/iptables/libiptc:libip4tc",
"//third_party/iptables/libiptc:libip6tc",
"//third_party/iptables/libxtables:libxtables",
]
part_name = "netmanager_base"
subsystem_name = "communication"
}
ohos_executable("iptables-restore") {
sources = [
"//third_party/iptables/iptables/ip6tables-standalone.c",
"//third_party/iptables/iptables/ip6tables.c",
"//third_party/iptables/iptables/iptables-restore.c",
"//third_party/iptables/iptables/iptables-save.c",
"//third_party/iptables/iptables/iptables-standalone.c",
"//third_party/iptables/iptables/iptables-xml.c",
"//third_party/iptables/iptables/iptables.c",
"//third_party/iptables/iptables/xshared.c",
"//third_party/iptables/iptables/xtables-legacy-multi.c",
]
include_dirs = [
"//third_party/iptables",
"//third_party/iptables/extensions",
"//third_party/iptables/include",
"//third_party/iptables/iptables",
"//third_party/iptables/libiptc",
]
configs = [ ":iptables_config" ]
install_enable = true
deps = [
"//third_party/iptables/extensions:libext",
"//third_party/iptables/extensions:libext4",
"//third_party/iptables/extensions:libext6",
"//third_party/iptables/libiptc:libip4tc",
"//third_party/iptables/libiptc:libip6tc",
"//third_party/iptables/libxtables:libxtables",
]
part_name = "netmanager_base"
subsystem_name = "communication"
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。