2009-03-04 04:28:35 +01:00
|
|
|
/****************************************************************************
|
|
|
|
****************************************************************************
|
|
|
|
***
|
|
|
|
*** This header was automatically generated from a Linux kernel header
|
|
|
|
*** of the same name, to make information necessary for userspace to
|
|
|
|
*** call into the kernel available to libc. It contains only constants,
|
|
|
|
*** structures, and macros generated from the original header, and thus,
|
|
|
|
*** contains no copyrightable information.
|
|
|
|
***
|
2012-03-08 06:13:49 +01:00
|
|
|
*** To edit the content of this header, modify the corresponding
|
|
|
|
*** source file (e.g. under external/kernel-headers/original/) then
|
|
|
|
*** run bionic/libc/kernel/tools/update_all.py
|
|
|
|
***
|
|
|
|
*** Any manual change here will be lost the next time this script will
|
|
|
|
*** be run. You've been warned!
|
|
|
|
***
|
2009-03-04 04:28:35 +01:00
|
|
|
****************************************************************************
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef _LINUX_IF_ARP_H
|
|
|
|
#define _LINUX_IF_ARP_H
|
|
|
|
#include <linux/netdevice.h>
|
|
|
|
#define ARPHRD_NETROM 0
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPHRD_ETHER 1
|
|
|
|
#define ARPHRD_EETHER 2
|
|
|
|
#define ARPHRD_AX25 3
|
|
|
|
#define ARPHRD_PRONET 4
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPHRD_CHAOS 5
|
|
|
|
#define ARPHRD_IEEE802 6
|
|
|
|
#define ARPHRD_ARCNET 7
|
|
|
|
#define ARPHRD_APPLETLK 8
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPHRD_DLCI 15
|
|
|
|
#define ARPHRD_ATM 19
|
|
|
|
#define ARPHRD_METRICOM 23
|
|
|
|
#define ARPHRD_IEEE1394 24
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPHRD_EUI64 27
|
|
|
|
#define ARPHRD_INFINIBAND 32
|
|
|
|
#define ARPHRD_SLIP 256
|
|
|
|
#define ARPHRD_CSLIP 257
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPHRD_SLIP6 258
|
|
|
|
#define ARPHRD_CSLIP6 259
|
|
|
|
#define ARPHRD_RSRVD 260
|
|
|
|
#define ARPHRD_ADAPT 264
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPHRD_ROSE 270
|
|
|
|
#define ARPHRD_X25 271
|
|
|
|
#define ARPHRD_HWX25 272
|
2010-04-07 03:49:49 +02:00
|
|
|
#define ARPHRD_CAN 280
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPHRD_PPP 512
|
|
|
|
#define ARPHRD_CISCO 513
|
|
|
|
#define ARPHRD_HDLC ARPHRD_CISCO
|
|
|
|
#define ARPHRD_LAPB 516
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPHRD_DDCMP 517
|
|
|
|
#define ARPHRD_RAWHDLC 518
|
|
|
|
#define ARPHRD_TUNNEL 768
|
|
|
|
#define ARPHRD_TUNNEL6 769
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPHRD_FRAD 770
|
|
|
|
#define ARPHRD_SKIP 771
|
|
|
|
#define ARPHRD_LOOPBACK 772
|
|
|
|
#define ARPHRD_LOCALTLK 773
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPHRD_FDDI 774
|
|
|
|
#define ARPHRD_BIF 775
|
|
|
|
#define ARPHRD_SIT 776
|
|
|
|
#define ARPHRD_IPDDP 777
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPHRD_IPGRE 778
|
|
|
|
#define ARPHRD_PIMREG 779
|
|
|
|
#define ARPHRD_HIPPI 780
|
|
|
|
#define ARPHRD_ASH 781
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPHRD_ECONET 782
|
|
|
|
#define ARPHRD_IRDA 783
|
|
|
|
#define ARPHRD_FCPP 784
|
|
|
|
#define ARPHRD_FCAL 785
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPHRD_FCPL 786
|
|
|
|
#define ARPHRD_FCFABRIC 787
|
|
|
|
#define ARPHRD_IEEE802_TR 800
|
|
|
|
#define ARPHRD_IEEE80211 801
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPHRD_IEEE80211_PRISM 802
|
|
|
|
#define ARPHRD_IEEE80211_RADIOTAP 803
|
2010-04-07 03:49:49 +02:00
|
|
|
#define ARPHRD_IEEE802154 804
|
|
|
|
#define ARPHRD_PHONET 820
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-04-07 03:49:49 +02:00
|
|
|
#define ARPHRD_PHONET_PIPE 821
|
2011-01-07 00:30:35 +01:00
|
|
|
#define ARPHRD_CAIF 822
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPHRD_VOID 0xFFFF
|
|
|
|
#define ARPHRD_NONE 0xFFFE
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPOP_REQUEST 1
|
|
|
|
#define ARPOP_REPLY 2
|
|
|
|
#define ARPOP_RREQUEST 3
|
|
|
|
#define ARPOP_RREPLY 4
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ARPOP_InREQUEST 8
|
|
|
|
#define ARPOP_InREPLY 9
|
|
|
|
#define ARPOP_NAK 10
|
|
|
|
struct arpreq {
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
struct sockaddr arp_pa;
|
|
|
|
struct sockaddr arp_ha;
|
|
|
|
int arp_flags;
|
|
|
|
struct sockaddr arp_netmask;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
char arp_dev[16];
|
|
|
|
};
|
|
|
|
struct arpreq_old {
|
|
|
|
struct sockaddr arp_pa;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
struct sockaddr arp_ha;
|
|
|
|
int arp_flags;
|
|
|
|
struct sockaddr arp_netmask;
|
|
|
|
};
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ATF_COM 0x02
|
|
|
|
#define ATF_PERM 0x04
|
|
|
|
#define ATF_PUBL 0x08
|
|
|
|
#define ATF_USETRAILERS 0x10
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define ATF_NETMASK 0x20
|
|
|
|
#define ATF_DONTPUB 0x40
|
2011-01-07 00:30:35 +01:00
|
|
|
struct arphdr {
|
2010-04-07 03:49:49 +02:00
|
|
|
__be16 ar_hrd;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-04-07 03:49:49 +02:00
|
|
|
__be16 ar_pro;
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned char ar_hln;
|
|
|
|
unsigned char ar_pln;
|
2010-04-07 03:49:49 +02:00
|
|
|
__be16 ar_op;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
};
|
|
|
|
#endif
|