blob: 787092c15224480f12a9073abde468b281e4698f [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPI_LINUX_IF_ARP_H
8#define _UAPI_LINUX_IF_ARP_H
9#include <linux/netdevice.h>
10#define ARPHRD_NETROM 0
Ben Cheng655a7c02013-10-16 16:09:24 -070011#define ARPHRD_ETHER 1
12#define ARPHRD_EETHER 2
13#define ARPHRD_AX25 3
14#define ARPHRD_PRONET 4
Ben Cheng655a7c02013-10-16 16:09:24 -070015#define ARPHRD_CHAOS 5
16#define ARPHRD_IEEE802 6
17#define ARPHRD_ARCNET 7
18#define ARPHRD_APPLETLK 8
Ben Cheng655a7c02013-10-16 16:09:24 -070019#define ARPHRD_DLCI 15
20#define ARPHRD_ATM 19
21#define ARPHRD_METRICOM 23
22#define ARPHRD_IEEE1394 24
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define ARPHRD_EUI64 27
24#define ARPHRD_INFINIBAND 32
25#define ARPHRD_SLIP 256
26#define ARPHRD_CSLIP 257
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define ARPHRD_SLIP6 258
28#define ARPHRD_CSLIP6 259
29#define ARPHRD_RSRVD 260
30#define ARPHRD_ADAPT 264
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define ARPHRD_ROSE 270
32#define ARPHRD_X25 271
33#define ARPHRD_HWX25 272
34#define ARPHRD_CAN 280
Christopher Ferris2abfa9e2021-11-01 16:26:06 -070035#define ARPHRD_MCTP 290
Ben Cheng655a7c02013-10-16 16:09:24 -070036#define ARPHRD_PPP 512
37#define ARPHRD_CISCO 513
38#define ARPHRD_HDLC ARPHRD_CISCO
39#define ARPHRD_LAPB 516
Ben Cheng655a7c02013-10-16 16:09:24 -070040#define ARPHRD_DDCMP 517
41#define ARPHRD_RAWHDLC 518
Christopher Ferris1308ad32017-11-14 17:32:13 -080042#define ARPHRD_RAWIP 519
Ben Cheng655a7c02013-10-16 16:09:24 -070043#define ARPHRD_TUNNEL 768
44#define ARPHRD_TUNNEL6 769
Ben Cheng655a7c02013-10-16 16:09:24 -070045#define ARPHRD_FRAD 770
46#define ARPHRD_SKIP 771
47#define ARPHRD_LOOPBACK 772
48#define ARPHRD_LOCALTLK 773
Ben Cheng655a7c02013-10-16 16:09:24 -070049#define ARPHRD_FDDI 774
50#define ARPHRD_BIF 775
51#define ARPHRD_SIT 776
52#define ARPHRD_IPDDP 777
Ben Cheng655a7c02013-10-16 16:09:24 -070053#define ARPHRD_IPGRE 778
54#define ARPHRD_PIMREG 779
55#define ARPHRD_HIPPI 780
56#define ARPHRD_ASH 781
Ben Cheng655a7c02013-10-16 16:09:24 -070057#define ARPHRD_ECONET 782
58#define ARPHRD_IRDA 783
59#define ARPHRD_FCPP 784
60#define ARPHRD_FCAL 785
Ben Cheng655a7c02013-10-16 16:09:24 -070061#define ARPHRD_FCPL 786
62#define ARPHRD_FCFABRIC 787
63#define ARPHRD_IEEE802_TR 800
64#define ARPHRD_IEEE80211 801
Ben Cheng655a7c02013-10-16 16:09:24 -070065#define ARPHRD_IEEE80211_PRISM 802
66#define ARPHRD_IEEE80211_RADIOTAP 803
67#define ARPHRD_IEEE802154 804
68#define ARPHRD_IEEE802154_MONITOR 805
Ben Cheng655a7c02013-10-16 16:09:24 -070069#define ARPHRD_PHONET 820
70#define ARPHRD_PHONET_PIPE 821
71#define ARPHRD_CAIF 822
72#define ARPHRD_IP6GRE 823
Christopher Ferris38062f92014-07-09 15:33:25 -070073#define ARPHRD_NETLINK 824
74#define ARPHRD_6LOWPAN 825
Christopher Ferris525ce912017-07-26 13:12:53 -070075#define ARPHRD_VSOCKMON 826
Ben Cheng655a7c02013-10-16 16:09:24 -070076#define ARPHRD_VOID 0xFFFF
77#define ARPHRD_NONE 0xFFFE
78#define ARPOP_REQUEST 1
Ben Cheng655a7c02013-10-16 16:09:24 -070079#define ARPOP_REPLY 2
80#define ARPOP_RREQUEST 3
81#define ARPOP_RREPLY 4
82#define ARPOP_InREQUEST 8
Ben Cheng655a7c02013-10-16 16:09:24 -070083#define ARPOP_InREPLY 9
84#define ARPOP_NAK 10
85struct arpreq {
Tao Baod7db5942015-01-28 10:07:51 -080086 struct sockaddr arp_pa;
87 struct sockaddr arp_ha;
88 int arp_flags;
89 struct sockaddr arp_netmask;
Christopher Ferris86a48372019-01-10 14:14:59 -080090 char arp_dev[IFNAMSIZ];
Ben Cheng655a7c02013-10-16 16:09:24 -070091};
92struct arpreq_old {
Tao Baod7db5942015-01-28 10:07:51 -080093 struct sockaddr arp_pa;
Tao Baod7db5942015-01-28 10:07:51 -080094 struct sockaddr arp_ha;
95 int arp_flags;
96 struct sockaddr arp_netmask;
Ben Cheng655a7c02013-10-16 16:09:24 -070097};
98#define ATF_COM 0x02
Ben Cheng655a7c02013-10-16 16:09:24 -070099#define ATF_PERM 0x04
100#define ATF_PUBL 0x08
101#define ATF_USETRAILERS 0x10
102#define ATF_NETMASK 0x20
Ben Cheng655a7c02013-10-16 16:09:24 -0700103#define ATF_DONTPUB 0x40
104struct arphdr {
Tao Baod7db5942015-01-28 10:07:51 -0800105 __be16 ar_hrd;
Tao Baod7db5942015-01-28 10:07:51 -0800106 __be16 ar_pro;
107 unsigned char ar_hln;
108 unsigned char ar_pln;
109 __be16 ar_op;
Ben Cheng655a7c02013-10-16 16:09:24 -0700110};
Ben Cheng655a7c02013-10-16 16:09:24 -0700111#endif