9 Star 0 Fork 22

src-openEuler/tcpdump

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tcpdump-Add-sw64-architecture.patch 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
xh 提交于 2022-12-15 02:30 . Add sw64 architecture
From 688338ba061ec66d9a852e328e9cd8865f774f3a Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Tue, 25 Oct 2022 19:40:41 +0800
Subject: [PATCH] tcpdump Add sw64 architecture
Signed-off-by: rpm-build <rpm-build>
---
extract.h | 2 +-
print-fddi.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/extract.h b/extract.h
index 2ea7763..8ff8e92 100644
--- a/extract.h
+++ b/extract.h
@@ -134,7 +134,7 @@ EXTRACT_IPV4_TO_HOST_ORDER(const void *p)
return ((uint32_t)ntohl(*(const uint32_t *)(p)));
}
#elif ND_IS_AT_LEAST_GNUC_VERSION(2,0) && \
- (defined(__alpha) || defined(__alpha__) || \
+ (defined(__alpha) || defined(__alpha__) || defined(__sw_64) || defined(__sw_64__) || \
defined(__mips) || defined(__mips__))
/*
* This is MIPS or Alpha, which don't natively handle unaligned loads,
diff --git a/print-fddi.c b/print-fddi.c
index fb8d3ed..25368bf 100644
--- a/print-fddi.c
+++ b/print-fddi.c
@@ -84,7 +84,7 @@ struct fddi_header {
/*
* Some FDDI interfaces use bit-swapped addresses.
*/
-#if defined(ultrix) || defined(__alpha) || defined(__bsdi) || defined(__NetBSD__) || defined(__linux__)
+#if defined(ultrix) || defined(__alpha) || defined(__sw_64) || defined(__bsdi) || defined(__NetBSD__) || defined(__linux__)
static int fddi_bitswap = 0;
#else
static int fddi_bitswap = 1;
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/tcpdump.git
git@gitee.com:src-openeuler/tcpdump.git
src-openeuler
tcpdump
tcpdump
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385