linux /proc/net/arp 文件
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了linux /proc/net/arp 文件,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1962字,纯文字阅读大概需要3分钟。
内容图文
![linux /proc/net/arp 文件](/upload/InfoBanner/zyjiaocheng/1131/318f9d236d4e4362bb091bd1683a2052.jpg)
/proc/net/arp
This holds an ASCII readable dump of the kernel ARP table used for address resolutions.
It will show both dynamically learned and preprogrammed ARP entries.
The format is:
IP address HW type Flags HW address Mask Device
192.168.0.500x10x200:50:BF:25:68:F3 * eth0
192.168.0.2500x10xc00:00:00:00:00:00* eth0
Here "IP address" is the IPv4 address of the machine
and the "HW type" is the hardware type of the address from RFC 826.
The flags are the internal
flags of the ARP structure (as defined in /usr/include/linux/if_arp.h) and
the "HW address" is the datalink layer mapping for that IP address if it is known./* ARP protocol HARDWARE identifiers. */#define ARPHRD_NETROM 0/* from KA9Q: NET/ROM pseudo */#define ARPHRD_ETHER 1/* Ethernet 10Mbps */#define ARPHRD_EETHER 2/* Experimental Ethernet */#define ARPHRD_AX25 3/* AX.25 Level 2 */#define ARPHRD_PRONET 4/* PROnet token ring */#define ARPHRD_CHAOS 5/* Chaosnet */#define ARPHRD_IEEE802 6/* IEEE 802.2 Ethernet/TR/TB */#define ARPHRD_ARCNET 7/* ARCnet */#define ARPHRD_APPLETLK 8/* APPLEtalk */#define ARPHRD_DLCI 15/* Frame Relay DLCI */#define ARPHRD_ATM 19/* ATM */#define ARPHRD_METRICOM 23/* Metricom STRIP (new IANA id) */#define ARPHRD_IEEE1394 24/* IEEE 1394 IPv4 - RFC 2734 */#define ARPHRD_EUI64 27/* EUI-64 */#define ARPHRD_INFINIBAND 32/* InfiniBand *//* ARP Flag values. */#define ATF_COM 0x02/* completed entry (ha valid) */#define ATF_PERM 0x04/* permanent entry */#define ATF_PUBL 0x08/* publish entry */#define ATF_USETRAILERS 0x10/* has requested trailers */#define ATF_NETMASK 0x20/* want to use a netmask (only
for proxy entries) */#define ATF_DONTPUB 0x40/* don‘t answer this addresses */
版权声明:本文为博主原创文章,未经博主允许不得转载。
原文:http://blog.csdn.net/u011641885/article/details/46944645
内容总结
以上是互联网集市为您收集整理的linux /proc/net/arp 文件全部内容,希望文章能够帮你解决linux /proc/net/arp 文件所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。