📄 parser.h
字号:
//
// Sample: Parse common routines for the SIO_RCVALL sample
//
// Files:
// parser.h - this file
//
// Description:
// This file contains definitions for the parser print routines used
// by the SIO_RCVALL sample.
//
// Compile:
// See rcvall.cpp
//
// Usage
// See rcvall.cpp
//
#ifndef _RCVALL_H_
#define _RCVALL_H_
#include <winsock2.h>
#include <windows.h>
#define MAX_IP_SIZE 65535
#define MIN_IP_HDR_SIZE 20
#define HI_WORD(byte) (((byte) >> 4) & 0x0F)
#define LO_WORD(byte) ((byte) & 0x0F)
extern char *szProto[];
void PrintRawBytes (BYTE *ptr, DWORD len);
int DecodeIGMPHeader(WSABUF *wsabuf, DWORD iphdrlen, DWORD iptotallen);
int DecodeUDPHeader (WSABUF *wsabuf, DWORD iphdrlen);
int DecodeTCPHeader (WSABUF *wsabuf, DWORD iphdrlenz);
int DecodeIPHeader (WSABUF *wasbuf, unsigned int srcaddr,
unsigned short srcport, unsigned int destaddr, unsigned short destport);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -