资源简介
tcpdump 分析 分析不时很详细,献给初学linux网络编程者对tcp/ip很熟悉的 就没有必要了下载了
代码片段和文件信息
/*
* Copyright (c) 1990 1991 1992 1993 1994 1995 1996 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms with or without
* modification are permitted provided that: (1) source code distributions
* retain the above copyright notice and this paragraph in its entirety (2)
* distributions including binary code include the above copyright notice and
* this paragraph in its entirety in the documentation or other materials
* provided with the distribution and (3) all advertising materials mentioning
* features or use of this software display the following acknowledgement:
* ‘‘This product includes software developed by the University of California
* Lawrence Berkeley Laboratory and its contributors.‘‘ Neither the name of
* the University nor the names of its contributors may be used to endorse
* or promote products derived from this software without specific prior
* written permission.
* THIS SOFTWARE IS PROVIDED ‘‘AS IS‘‘ AND WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTIES INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* Internet ethernet port and protocol string to address
* and address to string conversion routines
*/
#ifndef lint
static const char rcsid[] _U_ =
“@(#) $Header: /tcpdump/master/tcpdump/addrtoname.cv 1.119 2007-08-08 14:06:34 hannes Exp $ (LBL)“;
#endif
#ifdef HAVE_CONFIG_H
#include “config.h“
#endif
#include
#ifdef USE_ETHER_NTOHOST
#ifdef HAVE_NETINET_IF_ETHER_H
struct mbuf; /* Squelch compiler warnings on some platforms for */
struct rtentry; /* declarations in */
#include /* for “struct ifnet“ in “struct arpcom“ on Solaris */
#include
#endif /* HAVE_NETINET_IF_ETHER_H */
#ifdef NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
#include
#endif /* NETINET_ETHER_H_DECLARES_ETHER_NTOHOST */
#if !defined(HAVE_DECL_ETHER_NTOHOST) || !HAVE_DECL_ETHER_NTOHOST
#ifndef HAVE_STRUCT_ETHER_ADDR
struct ether_addr {
unsigned char ether_addr_octet[6];
};
#endif
extern int ether_ntohost(char * const struct ether_addr *);
#endif
#endif /* USE_ETHER_NTOHOST */
#include
#include
#include
#include
#include
#include
#include “interface.h“
#include “addrtoname.h“
#include “llc.h“
#include “setsignal.h“
#include “extract.h“
#include “oui.h“
#ifndef ETHER_ADDR_LEN
#define ETHER_ADDR_LEN 6
#endif
/*
* hash tables for whatever-to-name translations
*
* XXX there has to be error checks against strdup(3) failure
*/
#define HASHNAMESIZE 4096
struct hnamemem {
u_int32_t addr;
const char *name;
struct hnamemem *nxt;
};
struct hnamemem hnametable[HASHNAMESIZE];
struct hnamemem tporttable[HASHNAMESIZE];
struct hnamemem uporttable[HASHNAMESIZE];
struct hnamemem eprototable[HASHNAMESIZE];
struct hnamemem dnaddrtable[HASHNAMESIZE]
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 33477 2008-10-16 07:26 tcpdump-4.0.0\CHANGES
文件 8265 2008-09-01 10:42 tcpdump-4.0.0\CREDITS
文件 12143 2008-10-11 10:42 tcpdump-4.0.0\INSTALL.txt
文件 873 2008-04-04 01:51 tcpdump-4.0.0\LICENSE
文件 10057 2010-01-29 15:23 tcpdump-4.0.0\Makefile
文件 9708 2008-09-01 10:44 tcpdump-4.0.0\Makefile.in
文件 9801 2008-09-01 10:44 tcpdump-4.0.0\README
文件 1046 2008-04-04 01:51 tcpdump-4.0.0\Readme.Win32
文件 6 2008-10-27 21:36 tcpdump-4.0.0\VERSION
文件 3490 2008-09-01 10:44 tcpdump-4.0.0\acconfig.h
文件 34216 2008-10-11 10:40 tcpdump-4.0.0\aclocal.m4
文件 30146 2008-09-01 10:44 tcpdump-4.0.0\addrtoname.c
文件 2176 2008-09-01 10:44 tcpdump-4.0.0\addrtoname.h
文件 17020 2010-01-29 15:23 tcpdump-4.0.0\addrtoname.o
文件 2143 2008-09-01 10:44 tcpdump-4.0.0\af.c
文件 1894 2008-09-01 10:44 tcpdump-4.0.0\af.h
文件 1436 2010-01-29 15:23 tcpdump-4.0.0\af.o
文件 2405 2008-09-01 10:44 tcpdump-4.0.0\ah.h
文件 7118 2008-09-01 10:44 tcpdump-4.0.0\aodv.h
文件 4267 2008-09-01 10:44 tcpdump-4.0.0\ap
文件 3697 2008-09-01 10:44 tcpdump-4.0.0\arcnet.h
文件 529 2008-04-04 01:51 tcpdump-4.0.0\atime.awk
文件 1254 2008-09-01 10:44 tcpdump-4.0.0\atm.h
文件 4061 2008-09-01 10:44 tcpdump-4.0.0\atmuni31.h
文件 831 2008-09-01 10:44 tcpdump-4.0.0\bgp.h
文件 8135 2008-09-01 10:44 tcpdump-4.0.0\bootp.h
文件 2110 2008-09-01 10:44 tcpdump-4.0.0\bpf_dump.c
文件 1434 2008-09-01 10:44 tcpdump-4.0.0\chdlc.h
文件 2950 2008-09-01 10:44 tcpdump-4.0.0\checksum.c
文件 1268 2010-01-29 15:23 tcpdump-4.0.0\checksum.o
............此处省略389个文件信息
相关资源
- EFI.zip
- TCP_IP路由技术卷1英文版第二版
- portSpirit.zip
- keras数据集.zip
- uniplot绘图工具
- Rockchip RK3288技术参考手册
- 仿金蝶电商ERP进销存系统v8.zip
- ManageEngine_NetFlowAnalyzer_9.0破解版.zip
- GB28181模拟设备和自动化测试工具
- R数据科学.zip
- 广达双子星2015bios及主板驱动.zip
- 数据恢复企业版.zip
- 高德地图矢量数据工具.zip
- SDK_2.6.1_EVK-MIMXRT1064.zip
- AP6010DN-AGN-FAT-V200R005C10SPCa00.zip
- WAV源文件和单声道文件.zip
- STM32_Min.zip
- 50个安卓app软件.zip
- 网站、APP、社交网站真实头像打包2
- 实验79个.zip
- 啦啦跑腿外卖plus版we7_wmall_plus.zip
- z_zfer_10768582.zip
- WinTcpS7_1K V16.rar
- 阿里云opensips.zip
- zzq105__10330152.zip
- SWTDesigner_v7.6.0_for_Eclipse3.5.rar
- ANSYS动力学仿真官方教材.zip
- activiti工作流流程设计器插件,activ
- 2DGameplayTutorialProject.zip
- 模电.zip
评论
共有 条评论