摘要
以 L inux为平台 ,利用 PCAP技术获取以太网范围内 IP地址所对应的网卡 MAC地址 ,使网管人员在网络管理中获得主动 ,同时为自主开发网络管理软件提供可能。还介绍了网卡的两种地址、ARP协议、PCAP及程序 getmac.
This paper presents obtaining MAC address of network adapter corresponding to IP address within the Ethernet scope by using PCAP technique and on the basis of Linux platform,making network administrator know IP address for convenient network management,and is probable to develop network management software autonomously.Two kinds of addresses,ARP protocol,PCAP are introduced and program getmac.c list is implemented.
出处
《电脑开发与应用》
2003年第11期22-23,26,共3页
Computer Development & Applications