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