utils.h
来自「altera epxa1的例子程序」· C头文件 代码 · 共 28 行
H
28 行
#ifndef _UTILS_
#define _UTILS_
#include "ip.h"
USHORT bitrev16(USHORT din);
ULONG bitrev32(ULONG din);
USHORT checksum(UCHAR * buf, USHORT len);
int str2hex(UCHAR * instr, UCHAR * hex);
int str2dec(UCHAR * instr, UCHAR * dec);
void anykey(void);
void dump_buf(UCHAR *buf, int len);
void dump_buf32(ULONG buf, int len);
void dump_pkt(pkt_type *pktp, int len);
void decode_pkt(pkt_type *pktp, int len);
void decode_arp(arp_type *pktp);
void decode_ip(ip_type *pktp);
void decode_tcp(tcp_type *pktp);
void decode_udp(udp_type *pktp);
void decode_icmp(icmp_type *pktp);
void decode_data(raw_type * pktp, int len);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?