資源簡介
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個文件信息
評論
共有 條評論