| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** | 
|  | 2 | **************************************************************************** | 
|  | 3 | *** | 
|  | 4 | ***   This header was automatically generated from a Linux kernel header | 
|  | 5 | ***   of the same name, to make information necessary for userspace to | 
|  | 6 | ***   call into the kernel available to libc.  It contains only constants, | 
|  | 7 | ***   structures, and macros generated from the original header, and thus, | 
|  | 8 | ***   contains no copyrightable information. | 
|  | 9 | *** | 
|  | 10 | ***   To edit the content of this header, modify the corresponding | 
|  | 11 | ***   source file (e.g. under external/kernel-headers/original/) then | 
|  | 12 | ***   run bionic/libc/kernel/tools/update_all.py | 
|  | 13 | *** | 
|  | 14 | ***   Any manual change here will be lost the next time this script will | 
|  | 15 | ***   be run. You've been warned! | 
|  | 16 | *** | 
|  | 17 | **************************************************************************** | 
|  | 18 | ****************************************************************************/ | 
|  | 19 | #ifndef _UAPI_LINUX_IF_ARP_H | 
|  | 20 | #define _UAPI_LINUX_IF_ARP_H | 
|  | 21 | #include <linux/netdevice.h> | 
|  | 22 | #define ARPHRD_NETROM 0 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define ARPHRD_ETHER 1 | 
|  | 24 | #define ARPHRD_EETHER 2 | 
|  | 25 | #define ARPHRD_AX25 3 | 
|  | 26 | #define ARPHRD_PRONET 4 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define ARPHRD_CHAOS 5 | 
|  | 28 | #define ARPHRD_IEEE802 6 | 
|  | 29 | #define ARPHRD_ARCNET 7 | 
|  | 30 | #define ARPHRD_APPLETLK 8 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define ARPHRD_DLCI 15 | 
|  | 32 | #define ARPHRD_ATM 19 | 
|  | 33 | #define ARPHRD_METRICOM 23 | 
|  | 34 | #define ARPHRD_IEEE1394 24 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define ARPHRD_EUI64 27 | 
|  | 36 | #define ARPHRD_INFINIBAND 32 | 
|  | 37 | #define ARPHRD_SLIP 256 | 
|  | 38 | #define ARPHRD_CSLIP 257 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | #define ARPHRD_SLIP6 258 | 
|  | 40 | #define ARPHRD_CSLIP6 259 | 
|  | 41 | #define ARPHRD_RSRVD 260 | 
|  | 42 | #define ARPHRD_ADAPT 264 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | #define ARPHRD_ROSE 270 | 
|  | 44 | #define ARPHRD_X25 271 | 
|  | 45 | #define ARPHRD_HWX25 272 | 
|  | 46 | #define ARPHRD_CAN 280 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 47 | #define ARPHRD_PPP 512 | 
|  | 48 | #define ARPHRD_CISCO 513 | 
|  | 49 | #define ARPHRD_HDLC ARPHRD_CISCO | 
|  | 50 | #define ARPHRD_LAPB 516 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 51 | #define ARPHRD_DDCMP 517 | 
|  | 52 | #define ARPHRD_RAWHDLC 518 | 
| Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 53 | #define ARPHRD_RAWIP 519 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 54 | #define ARPHRD_TUNNEL 768 | 
|  | 55 | #define ARPHRD_TUNNEL6 769 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 56 | #define ARPHRD_FRAD 770 | 
|  | 57 | #define ARPHRD_SKIP 771 | 
|  | 58 | #define ARPHRD_LOOPBACK 772 | 
|  | 59 | #define ARPHRD_LOCALTLK 773 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 60 | #define ARPHRD_FDDI 774 | 
|  | 61 | #define ARPHRD_BIF 775 | 
|  | 62 | #define ARPHRD_SIT 776 | 
|  | 63 | #define ARPHRD_IPDDP 777 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 64 | #define ARPHRD_IPGRE 778 | 
|  | 65 | #define ARPHRD_PIMREG 779 | 
|  | 66 | #define ARPHRD_HIPPI 780 | 
|  | 67 | #define ARPHRD_ASH 781 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 68 | #define ARPHRD_ECONET 782 | 
|  | 69 | #define ARPHRD_IRDA 783 | 
|  | 70 | #define ARPHRD_FCPP 784 | 
|  | 71 | #define ARPHRD_FCAL 785 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 72 | #define ARPHRD_FCPL 786 | 
|  | 73 | #define ARPHRD_FCFABRIC 787 | 
|  | 74 | #define ARPHRD_IEEE802_TR 800 | 
|  | 75 | #define ARPHRD_IEEE80211 801 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 76 | #define ARPHRD_IEEE80211_PRISM 802 | 
|  | 77 | #define ARPHRD_IEEE80211_RADIOTAP 803 | 
|  | 78 | #define ARPHRD_IEEE802154 804 | 
|  | 79 | #define ARPHRD_IEEE802154_MONITOR 805 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 80 | #define ARPHRD_PHONET 820 | 
|  | 81 | #define ARPHRD_PHONET_PIPE 821 | 
|  | 82 | #define ARPHRD_CAIF 822 | 
|  | 83 | #define ARPHRD_IP6GRE 823 | 
| Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 84 | #define ARPHRD_NETLINK 824 | 
|  | 85 | #define ARPHRD_6LOWPAN 825 | 
| Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 86 | #define ARPHRD_VSOCKMON 826 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 87 | #define ARPHRD_VOID 0xFFFF | 
|  | 88 | #define ARPHRD_NONE 0xFFFE | 
|  | 89 | #define ARPOP_REQUEST 1 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 90 | #define ARPOP_REPLY 2 | 
|  | 91 | #define ARPOP_RREQUEST 3 | 
|  | 92 | #define ARPOP_RREPLY 4 | 
|  | 93 | #define ARPOP_InREQUEST 8 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 94 | #define ARPOP_InREPLY 9 | 
|  | 95 | #define ARPOP_NAK 10 | 
|  | 96 | struct arpreq { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 97 | struct sockaddr arp_pa; | 
|  | 98 | struct sockaddr arp_ha; | 
|  | 99 | int arp_flags; | 
|  | 100 | struct sockaddr arp_netmask; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 101 | char arp_dev[16]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 102 | }; | 
|  | 103 | struct arpreq_old { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 104 | struct sockaddr arp_pa; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 105 | struct sockaddr arp_ha; | 
|  | 106 | int arp_flags; | 
|  | 107 | struct sockaddr arp_netmask; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 108 | }; | 
|  | 109 | #define ATF_COM 0x02 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 110 | #define ATF_PERM 0x04 | 
|  | 111 | #define ATF_PUBL 0x08 | 
|  | 112 | #define ATF_USETRAILERS 0x10 | 
|  | 113 | #define ATF_NETMASK 0x20 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 114 | #define ATF_DONTPUB 0x40 | 
|  | 115 | struct arphdr { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 116 | __be16 ar_hrd; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 117 | __be16 ar_pro; | 
|  | 118 | unsigned char ar_hln; | 
|  | 119 | unsigned char ar_pln; | 
|  | 120 | __be16 ar_op; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 121 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 122 | #endif |