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 |
| 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 24 | #define ARPHRD_ETHER 1 |
| 25 | #define ARPHRD_EETHER 2 |
| 26 | #define ARPHRD_AX25 3 |
| 27 | #define ARPHRD_PRONET 4 |
| 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 29 | #define ARPHRD_CHAOS 5 |
| 30 | #define ARPHRD_IEEE802 6 |
| 31 | #define ARPHRD_ARCNET 7 |
| 32 | #define ARPHRD_APPLETLK 8 |
| 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 34 | #define ARPHRD_DLCI 15 |
| 35 | #define ARPHRD_ATM 19 |
| 36 | #define ARPHRD_METRICOM 23 |
| 37 | #define ARPHRD_IEEE1394 24 |
| 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 39 | #define ARPHRD_EUI64 27 |
| 40 | #define ARPHRD_INFINIBAND 32 |
| 41 | #define ARPHRD_SLIP 256 |
| 42 | #define ARPHRD_CSLIP 257 |
| 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 44 | #define ARPHRD_SLIP6 258 |
| 45 | #define ARPHRD_CSLIP6 259 |
| 46 | #define ARPHRD_RSRVD 260 |
| 47 | #define ARPHRD_ADAPT 264 |
| 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 49 | #define ARPHRD_ROSE 270 |
| 50 | #define ARPHRD_X25 271 |
| 51 | #define ARPHRD_HWX25 272 |
| 52 | #define ARPHRD_CAN 280 |
| 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 54 | #define ARPHRD_PPP 512 |
| 55 | #define ARPHRD_CISCO 513 |
| 56 | #define ARPHRD_HDLC ARPHRD_CISCO |
| 57 | #define ARPHRD_LAPB 516 |
| 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 59 | #define ARPHRD_DDCMP 517 |
| 60 | #define ARPHRD_RAWHDLC 518 |
| 61 | #define ARPHRD_TUNNEL 768 |
| 62 | #define ARPHRD_TUNNEL6 769 |
| 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 64 | #define ARPHRD_FRAD 770 |
| 65 | #define ARPHRD_SKIP 771 |
| 66 | #define ARPHRD_LOOPBACK 772 |
| 67 | #define ARPHRD_LOCALTLK 773 |
| 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 69 | #define ARPHRD_FDDI 774 |
| 70 | #define ARPHRD_BIF 775 |
| 71 | #define ARPHRD_SIT 776 |
| 72 | #define ARPHRD_IPDDP 777 |
| 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 74 | #define ARPHRD_IPGRE 778 |
| 75 | #define ARPHRD_PIMREG 779 |
| 76 | #define ARPHRD_HIPPI 780 |
| 77 | #define ARPHRD_ASH 781 |
| 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 79 | #define ARPHRD_ECONET 782 |
| 80 | #define ARPHRD_IRDA 783 |
| 81 | #define ARPHRD_FCPP 784 |
| 82 | #define ARPHRD_FCAL 785 |
| 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 84 | #define ARPHRD_FCPL 786 |
| 85 | #define ARPHRD_FCFABRIC 787 |
| 86 | #define ARPHRD_IEEE802_TR 800 |
| 87 | #define ARPHRD_IEEE80211 801 |
| 88 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 89 | #define ARPHRD_IEEE80211_PRISM 802 |
| 90 | #define ARPHRD_IEEE80211_RADIOTAP 803 |
| 91 | #define ARPHRD_IEEE802154 804 |
| 92 | #define ARPHRD_IEEE802154_MONITOR 805 |
| 93 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 94 | #define ARPHRD_PHONET 820 |
| 95 | #define ARPHRD_PHONET_PIPE 821 |
| 96 | #define ARPHRD_CAIF 822 |
| 97 | #define ARPHRD_IP6GRE 823 |
| 98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 99 | #define ARPHRD_NETLINK 824 |
| 100 | #define ARPHRD_6LOWPAN 825 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 101 | #define ARPHRD_VOID 0xFFFF |
| 102 | #define ARPHRD_NONE 0xFFFE |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 104 | #define ARPOP_REQUEST 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 105 | #define ARPOP_REPLY 2 |
| 106 | #define ARPOP_RREQUEST 3 |
| 107 | #define ARPOP_RREPLY 4 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 108 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 109 | #define ARPOP_InREQUEST 8 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 110 | #define ARPOP_InREPLY 9 |
| 111 | #define ARPOP_NAK 10 |
| 112 | struct arpreq { |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 113 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 114 | struct sockaddr arp_pa; |
| 115 | struct sockaddr arp_ha; |
| 116 | int arp_flags; |
| 117 | struct sockaddr arp_netmask; |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 118 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 119 | char arp_dev[16]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 120 | }; |
| 121 | struct arpreq_old { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 122 | struct sockaddr arp_pa; |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 123 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 124 | struct sockaddr arp_ha; |
| 125 | int arp_flags; |
| 126 | struct sockaddr arp_netmask; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 127 | }; |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 128 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 129 | #define ATF_COM 0x02 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 130 | #define ATF_PERM 0x04 |
| 131 | #define ATF_PUBL 0x08 |
| 132 | #define ATF_USETRAILERS 0x10 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 133 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 134 | #define ATF_NETMASK 0x20 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 135 | #define ATF_DONTPUB 0x40 |
| 136 | struct arphdr { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 137 | __be16 ar_hrd; |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 138 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 139 | __be16 ar_pro; |
| 140 | unsigned char ar_hln; |
| 141 | unsigned char ar_pln; |
| 142 | __be16 ar_op; |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 143 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 144 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 145 | #endif |