代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/third_party_iptables 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Copyright (c) 2020 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")
ohos_executable("iptables-restore") {
sources = [
#"//third_party/iptables/iptables/ip6tables.c",
#"//third_party/iptables/iptables/ip6tables-standalone.c",
"//third_party/iptables/iptables/iptables.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/nft.c",
#"//third_party/iptables/iptables/nft-arp.c",
#"//third_party/iptables/iptables/nft-bridge.c",
#"//third_party/iptables/iptables/nft-cache.c",
#"//third_party/iptables/iptables/nft-chain.c",
#"//third_party/iptables/iptables/nft-cmd.c",
#"//third_party/iptables/iptables/nft-ipv4.c",
#"//third_party/iptables/iptables/nft-ipv6.c",
#"//third_party/iptables/iptables/nft-shared.c",
"//third_party/iptables/iptables/xshared.c",
"//third_party/iptables/iptables/xtables.c",
#"//third_party/iptables/iptables/xtables-arp.c",
#"//third_party/iptables/iptables/xtables-arp-standalone.c",
#"//third_party/iptables/iptables/xtables-eb.c",
#"//third_party/iptables/iptables/xtables-eb-standalone.c",
#"//third_party/iptables/iptables/xtables-eb-translate.c",
"//third_party/iptables/iptables/xtables-legacy-multi.c",
#"//third_party/iptables/iptables/xtables-monitor.c",
#"//third_party/iptables/iptables/xtables-nft-multi.c",
#"//third_party/iptables/iptables/xtables-restore.c",
#"//third_party/iptables/iptables/xtables-save.c",
#"//third_party/iptables/iptables/xtables-standalone.c",
#"//third_party/iptables/iptables/xtables-translate.c",
#"//third_party/iptables/libipq/libipq.c",
#"//third_party/iptables/libiptc/libip4tc.c",
#"//third_party/iptables/libiptc/libip6tc.c",
#"//third_party/iptables/libiptc/libiptc.c",
#"//third_party/iptables/libxtables/getethertype.c",
#"//third_party/iptables/libxtables/xtables.c",
#"//third_party/iptables/libxtables/xtoptions.c",
#"//third_party/iptables/extensions/tos_values.c",
#"//third_party/iptables/extensions/libip6t_srh.c",
#"//third_party/iptables/extensions/libip6t_SNPT.c",
#"//third_party/iptables/extensions/libip6t_SNAT.c",
#"//third_party/iptables/extensions/libip6t_rt.c",
#"//third_party/iptables/extensions/libip6t_REJECT.c",
#"//third_party/iptables/extensions/libip6t_REDIRECT.c",
#"//third_party/iptables/extensions/libip6t_NETMAP.c",
#"//third_party/iptables/extensions/libip6t_mh.c",
#"//third_party/iptables/extensions/libip6t_MASQUERADE.c",
#"//third_party/iptables/extensions/libip6t_LOG.c",
#"//third_party/iptables/extensions/libip6t_ipv6header.c",
#"//third_party/iptables/extensions/libip6t_icmp6.c",
#"//third_party/iptables/extensions/libip6t_HL.c",
#"//third_party/iptables/extensions/libip6t_hl.c",
#"//third_party/iptables/extensions/libip6t_hbh.c",
#"//third_party/iptables/extensions/libip6t_frag.c",
#"//third_party/iptables/extensions/libip6t_eui64.c",
#"//third_party/iptables/extensions/libip6t_dst.c",
#"//third_party/iptables/extensions/libip6t_DNPT.c",
#"//third_party/iptables/extensions/libip6t_DNAT.c",
#"//third_party/iptables/extensions/libip6t_ah.c",
#"//third_party/iptables/extensions/libebt_vlan.c",
#"//third_party/iptables/extensions/libebt_stp.c",
#"//third_party/iptables/extensions/libebt_snat.c",
#"//third_party/iptables/extensions/libebt_redirect.c",
#"//third_party/iptables/extensions/libebt_nflog.c",
#"//third_party/iptables/extensions/libebt_mark_m.c",
#"//third_party/iptables/extensions/libebt_mark.c",
#"//third_party/iptables/extensions/libebt_log.c",
#"//third_party/iptables/extensions/libebt_ip6.c",
#"//third_party/iptables/extensions/libebt_ip.c",
#"//third_party/iptables/extensions/libebt_dnat.c",
#"//third_party/iptables/extensions/libebt_arpreply.c",
#"//third_party/iptables/extensions/libebt_among.c",
#"//third_party/iptables/extensions/libebt_802_3.c",
#"//third_party/iptables/extensions/libarpt_mangle.c",
#"//third_party/iptables/extensions/dscp_helper.c",
#"//third_party/iptables/utils/nfbpf_compile.c",
#"//third_party/iptables/utils/nfnl_osf.c",
#"//third_party/iptables/utils/nfsynproxy.c",
]
include_dirs = [
"//third_party/iptables",
"//third_party/iptables/extensions",
"//third_party/iptables/include",
"//third_party/iptables/iptables",
"//third_party/iptables/libiptc",
"//third_party/libnetfilter_conntrack/include",
"//third_party/libnfnetlink/include",
"//third_party/libnftnl/include",
"//third_party/libmnl/include",
]
cflags = [
"-fPIC",
"-Os",
"-g",
"-Wall",
"-fno-strict-aliasing",
"-fvisibility=hidden",
"-Wmissing-declarations",
"-Waggregate-return",
"-pipe",
"-DNO_SHARED_LIBS=1",
"-DALL_INCLUSIVE",
"-DXTABLES_INTERNAL",
"-DD_LARGEFILE_SOURCE=1",
"-D_LARGE_FILES",
"-D_FILE_OFFSET_BITS=64",
"-D_REENTRANT",
"-DENABLE_IPV4",
]
deps = [
"//third_party/iptables/extensions:libext",
"//third_party/iptables/extensions:libext4",
"//third_party/iptables/libiptc:libip4tc",
"//third_party/iptables/libxtables:libxtables",
"//third_party/libmnl:mnl",
"//third_party/libnftnl:nftnl",
"//third_party/libnetfilter_conntrack:netfilter_conntrack",
"//third_party/libnfnetlink:nfnetlink",
]
part_name = "netmanager_base"
subsystem_name = "communication"
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。