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

📄 arp.h

📁 mgcp协议源代码。支持多种编码:g711
💻 H
字号:
/**************************************************************************** ** File: arp.h**** Author: Mike Borella**** Comments: Generic ARP structure - an attempt at OS independence**** $Log: arp.h,v $** Revision 1.2  2000/10/27 00:11:16  qweaver****** Rolled back to the pristine ipgrab-0.8.2 source.**** Revision 1.2  1998/06/12 20:52:53  mborella** Added log tag*******************************************************************************//*  * ARP protocol opcodes.  */#define ARPOP_REQUEST   1               /* ARP request                  */#define ARPOP_REPLY     2               /* ARP reply                    */#define ARPOP_RREQUEST  3               /* RARP request                 */#define ARPOP_RREPLY    4               /* RARP reply                   *//* * ARP header */typedef struct _ARPHdr{  unsigned short  ar_hrd;         /* format of hardware address   */  unsigned short  ar_pro;         /* format of protocol address   */  unsigned char   ar_hln;         /* length of hardware address   */  unsigned char   ar_pln;         /* length of protocol address   */  unsigned short  ar_op;          /* ARP opcode (command)         */} ARPHdr;/* * Ethernet ARP format */    typedef struct _EtherARP{  ARPHdr        ea_hdr;         /* fixed-size header */  unsigned char arp_sha[6];     /* sender hardware address */  unsigned char arp_spa[4];     /* sender protocol address */  unsigned char arp_tha[6];     /* target hardware address */  unsigned char arp_tpa[4];     /* target protocol address */} EtherARP;

⌨️ 快捷键说明

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