1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _UAPI_LINUX_IF_ARP_H 8 #define _UAPI_LINUX_IF_ARP_H 9 #include <linux/netdevice.h> 10 #define ARPHRD_NETROM 0 11 #define ARPHRD_ETHER 1 12 #define ARPHRD_EETHER 2 13 #define ARPHRD_AX25 3 14 #define ARPHRD_PRONET 4 15 #define ARPHRD_CHAOS 5 16 #define ARPHRD_IEEE802 6 17 #define ARPHRD_ARCNET 7 18 #define ARPHRD_APPLETLK 8 19 #define ARPHRD_DLCI 15 20 #define ARPHRD_ATM 19 21 #define ARPHRD_METRICOM 23 22 #define ARPHRD_IEEE1394 24 23 #define ARPHRD_EUI64 27 24 #define ARPHRD_INFINIBAND 32 25 #define ARPHRD_SLIP 256 26 #define ARPHRD_CSLIP 257 27 #define ARPHRD_SLIP6 258 28 #define ARPHRD_CSLIP6 259 29 #define ARPHRD_RSRVD 260 30 #define ARPHRD_ADAPT 264 31 #define ARPHRD_ROSE 270 32 #define ARPHRD_X25 271 33 #define ARPHRD_HWX25 272 34 #define ARPHRD_CAN 280 35 #define ARPHRD_MCTP 290 36 #define ARPHRD_PPP 512 37 #define ARPHRD_CISCO 513 38 #define ARPHRD_HDLC ARPHRD_CISCO 39 #define ARPHRD_LAPB 516 40 #define ARPHRD_DDCMP 517 41 #define ARPHRD_RAWHDLC 518 42 #define ARPHRD_RAWIP 519 43 #define ARPHRD_TUNNEL 768 44 #define ARPHRD_TUNNEL6 769 45 #define ARPHRD_FRAD 770 46 #define ARPHRD_SKIP 771 47 #define ARPHRD_LOOPBACK 772 48 #define ARPHRD_LOCALTLK 773 49 #define ARPHRD_FDDI 774 50 #define ARPHRD_BIF 775 51 #define ARPHRD_SIT 776 52 #define ARPHRD_IPDDP 777 53 #define ARPHRD_IPGRE 778 54 #define ARPHRD_PIMREG 779 55 #define ARPHRD_HIPPI 780 56 #define ARPHRD_ASH 781 57 #define ARPHRD_ECONET 782 58 #define ARPHRD_IRDA 783 59 #define ARPHRD_FCPP 784 60 #define ARPHRD_FCAL 785 61 #define ARPHRD_FCPL 786 62 #define ARPHRD_FCFABRIC 787 63 #define ARPHRD_IEEE802_TR 800 64 #define ARPHRD_IEEE80211 801 65 #define ARPHRD_IEEE80211_PRISM 802 66 #define ARPHRD_IEEE80211_RADIOTAP 803 67 #define ARPHRD_IEEE802154 804 68 #define ARPHRD_IEEE802154_MONITOR 805 69 #define ARPHRD_PHONET 820 70 #define ARPHRD_PHONET_PIPE 821 71 #define ARPHRD_CAIF 822 72 #define ARPHRD_IP6GRE 823 73 #define ARPHRD_NETLINK 824 74 #define ARPHRD_6LOWPAN 825 75 #define ARPHRD_VSOCKMON 826 76 #define ARPHRD_VOID 0xFFFF 77 #define ARPHRD_NONE 0xFFFE 78 #define ARPOP_REQUEST 1 79 #define ARPOP_REPLY 2 80 #define ARPOP_RREQUEST 3 81 #define ARPOP_RREPLY 4 82 #define ARPOP_InREQUEST 8 83 #define ARPOP_InREPLY 9 84 #define ARPOP_NAK 10 85 struct arpreq { 86 struct sockaddr arp_pa; 87 struct sockaddr arp_ha; 88 int arp_flags; 89 struct sockaddr arp_netmask; 90 char arp_dev[IFNAMSIZ]; 91 }; 92 struct arpreq_old { 93 struct sockaddr arp_pa; 94 struct sockaddr arp_ha; 95 int arp_flags; 96 struct sockaddr arp_netmask; 97 }; 98 #define ATF_COM 0x02 99 #define ATF_PERM 0x04 100 #define ATF_PUBL 0x08 101 #define ATF_USETRAILERS 0x10 102 #define ATF_NETMASK 0x20 103 #define ATF_DONTPUB 0x40 104 struct arphdr { 105 __be16 ar_hrd; 106 __be16 ar_pro; 107 unsigned char ar_hln; 108 unsigned char ar_pln; 109 __be16 ar_op; 110 }; 111 #endif 112