⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ipexport.h

📁 Linux 上的socket嗅探器
💻 H
字号:
/*
 *
 * Copyright (C) 2003 Xiangbin Lee <honeycombs@sina.com> <honeycombs@263.net>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation.
 */

#ifndef _IPEXPORT_H_
#define _IPEXPORT_H_

#include "ache.h"
#include "datetime.h"
#include "protocal.h"
#include "netspy.h"
#include "packet.h"


typedef struct _Export_Function_Index
{
    unsigned short type;
    void (*ExportTreeFun)(ACHETREE *, unsigned short, unsigned char *, unsigned short);
    char info[80];
}Export_Function_Index;
/*  ---------------- protocal export--------------------   */

extern Export_Function_Index ExportFun_ETHER[];
void ExportTree_ETH(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
                                          
extern Export_Function_Index ExportFun_IPV4[];
void ExportTree_ETH_IP(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 0 , dummy for IP       */
void ExportTree_ETH_IP_IPDUM(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 1 , control message protocol  */
void ExportTree_ETH_IP_ICMP(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 2, internet group management protocol   */
void ExportTree_ETH_IP_IGMP(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 3, gateway^2 (deprecated)    */
void ExportTree_ETH_IP_GGP(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 4, IPIP tunnels (older KA9Q tunnels use 94).  */
void ExportTree_ETH_IP_IPIP(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 6, tcp     */
void ExportTree_ETH_IP_TCP(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 8, Exterior Gateway Protocol.  */
void ExportTree_ETH_IP_EGP(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 12, pup    */
void ExportTree_ETH_IP_PUP(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 17, user datagram protocol    */
void ExportTree_ETH_IP_UDP(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 22, xns idp    */
void ExportTree_ETH_IP_IDP(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 29, SO Transport Protocol Class 4.  */
void ExportTree_ETH_IP_TP(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 41, IPv6 header.  */
void ExportTree_ETH_IP_IPV6(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 43, IPv6 routing header.  */
void ExportTree_ETH_IP_ROUTING(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 44, IPv6 fragmentation header.  */
void ExportTree_ETH_IP_FRAGMENT(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 46, Reservation Protocol.  */
void ExportTree_ETH_IP_RSVP(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 47, General Routing Encapsulation.  */
void ExportTree_ETH_IP_GRE(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 50, encapsulating security payload.  */
void ExportTree_ETH_IP_ESP(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 51, authentication header.  */
void ExportTree_ETH_IP_AH(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 58, ICMPv6.  */
void ExportTree_ETH_IP_ICMPV6(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 59, IPv6 no next header.  */
void ExportTree_ETH_IP_NONE(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 60, IPv6 destination options.  */
void ExportTree_ETH_IP_DSTOPTS(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 77, UNOFFICIAL net disk proto   */
void ExportTree_ETH_IP_ND(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 92, Multicast Transport Protocol.  */
void ExportTree_ETH_IP_MTP(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 98, Encapsulation Header.  */
void ExportTree_ETH_IP_ENCAP(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 103, Protocol Independent Multicast.  */
void ExportTree_ETH_IP_PIM(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 108, Compression Header Protocol.  */

void ExportTree_ETH_IP_COMP(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 255, raw IP packet   */
void ExportTree_ETH_IP_RAW(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);
/* 256     */
void ExportTree_ETH_IP_MAX(ACHETREE *lptree, unsigned short curpos, unsigned char *lpbuf, unsigned short buflen);    

#endif








⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -