arp.h: add some ARPHRD definition

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2023-01-05 22:16:23 +08:00 committed by Xiang Xiao
parent 725a1f1e20
commit ec28082e5d
1 changed files with 5 additions and 0 deletions

View File

@ -44,9 +44,14 @@
*/
#define ARPHRD_ETHER 1 /* Ethernet */
#define ARPHRD_PPP 512
#define ARPHRD_LOOPBACK 772 /* Loopback device */
#define ARPHRD_IEEE80211 801 /* IEEE 802.11 */
#define ARPHRD_IEEE802154 804 /* IEEE 802.15.4 */
#define ARPHRD_VOID 0xFFFF /* Void type, nothing is known */
#define ARPHRD_NONE 0xFFFE /* zero header length */
/* Three ioctls are available on all PF_INET sockets. Each ioctl takes a
* pointer to a 'struct arpreq' as its parameter.
*/