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

📄 prepare_pcap.h

📁 sipbomber - tool for testing SIP-protocol implementation (RFC3261). Current version can check only
💻 H
字号:
/* *  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, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA * *  Author : Guillaume TEISSIER from FTR&D 02/02/2006 */#ifndef PREPARE_PCAP_H#define PREPARE_PCAP_H	1#include <pcap.h>#include <netinet/in.h>#include <netinet/udp.h>#include <time.h>#ifdef __HPUX#define u_int16_t uint16_t#endiftypedef struct{  u_char *data;  u_long pktlen;  struct timeval ts;  int partial_check;} pcap_pkt;#define PCAP_MAXPACKET	1500typedef struct{  char *file;  u_int16_t base;  u_long max_length;  pcap_pkt *max;  pcap_pkt *pkts;} pcap_pkts;#ifdef __cplusplusextern "C" {#endifint check(u_int16_t *, int);u_int16_t checksum_carry(int);int prepare_pkts(char *, pcap_pkts *);void free_pkts(pcap_pkts *);#ifdef __cplusplus}#endif#endif /* PREPARE_PCAP_H */

⌨️ 快捷键说明

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