1 Star 0 Fork 35

L2API/third_party_iptables

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
BUILD.gn 6.09 KB
一键复制 编辑 原始数据 按行查看 历史
wangxianjun 提交于 2021-12-23 16:38 . add BUILD.gn config.h file
# 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"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/l2-api/third_party_iptables.git
[email protected]:l2-api/third_party_iptables.git
l2-api
third_party_iptables
third_party_iptables
master

搜索帮助