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_PPP 512 43#define ARPHRD_CISCO 513 44#define ARPHRD_HDLC ARPHRD_CISCO 45#define ARPHRD_LAPB 516 46#define ARPHRD_DDCMP 517 47#define ARPHRD_RAWHDLC 518 48 49#define ARPHRD_TUNNEL 768 50#define ARPHRD_TUNNEL6 769 51#define ARPHRD_FRAD 770 52#define ARPHRD_SKIP 771 53#define ARPHRD_LOOPBACK 772 54#define ARPHRD_LOCALTLK 773 55#define ARPHRD_FDDI 774 56#define ARPHRD_BIF 775 57#define ARPHRD_SIT 776 58#define ARPHRD_IPDDP 777 59#define ARPHRD_IPGRE 778 60#define ARPHRD_PIMREG 779 61#define ARPHRD_HIPPI 780 62#define ARPHRD_ASH 781 63#define ARPHRD_ECONET 782 64#define ARPHRD_IRDA 783 65 66#define ARPHRD_FCPP 784 67#define ARPHRD_FCAL 785 68#define ARPHRD_FCPL 786 69#define ARPHRD_FCFABRIC 787 70 71#define ARPHRD_IEEE802_TR 800 72#define ARPHRD_IEEE80211 801 73#define ARPHRD_IEEE80211_PRISM 802 74#define ARPHRD_IEEE80211_RADIOTAP 803 75 76#define ARPHRD_VOID 0xFFFF 77#define ARPHRD_NONE 0xFFFE 78 79#define ARPOP_REQUEST 1 80#define ARPOP_REPLY 2 81#define ARPOP_RREQUEST 3 82#define ARPOP_RREPLY 4 83#define ARPOP_InREQUEST 8 84#define ARPOP_InREPLY 9 85#define ARPOP_NAK 10 86 87struct arpreq { 88 struct sockaddr arp_pa; 89 struct sockaddr arp_ha; 90 int arp_flags; 91 struct sockaddr arp_netmask; 92 char arp_dev[16]; 93}; 94 95struct arpreq_old { 96 struct sockaddr arp_pa; 97 struct sockaddr arp_ha; 98 int arp_flags; 99 struct sockaddr arp_netmask; 100}; 101 102#define ATF_COM 0x02 103#define ATF_PERM 0x04 104#define ATF_PUBL 0x08 105#define ATF_USETRAILERS 0x10 106#define ATF_NETMASK 0x20 107#define ATF_DONTPUB 0x40 108 109struct arphdr 110{ 111 unsigned short ar_hrd; 112 unsigned short ar_pro; 113 unsigned char ar_hln; 114 unsigned char ar_pln; 115 unsigned short ar_op; 116 117}; 118 119#endif 120