WvStreams
debian/libwvstreams-dev/usr/include/wvstreams/if_arp.h
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Global definitions for the ARP (RFC 826) protocol.
7 *
8 * Authors: Original taken from Berkeley UNIX 4.3, (c) UCB 1986-1988
9 * Portions taken from the KA9Q/NOS (v2.00m PA0GRI) source.
10 * Based on a version 1.0.1 04/16/93 taken from Linux
11 * Ross Biro, <bir7@leland.Stanford.Edu>
12 * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
13 * Florian La Roche,
14 * Jonathan Layes <layes@loran.com>
15 * Arnaldo Carvalho de Melo <acme@conectiva.com.br> ARPHRD_HWX25
16 * Stripped down by Net Integration Technologies, 2004
17 * Simon Law <sfllaw@nit.ca>
18 * Adrian Dewhurst <sailor-h@sailorfrag.net>
19 *
20 * This is just an interface, so it's public domain information.
21 */
22
23#ifndef _WV_IF_ARP_H
24#define _WV_IF_ARP_H
25
26/* ARP protocol HARDWARE identifiers. */
27#define ARPHRD_NETROM 0 /* from KA9Q: NET/ROM pseudo */
28#define ARPHRD_ETHER 1 /* Ethernet 10Mbps */
29#define ARPHRD_EETHER 2 /* Experimental Ethernet */
30#define ARPHRD_AX25 3 /* AX.25 Level 2 */
31#define ARPHRD_PRONET 4 /* PROnet token ring */
32#define ARPHRD_CHAOS 5 /* Chaosnet */
33#define ARPHRD_IEEE802 6 /* IEEE 802.2 Ethernet/TR/TB */
34#define ARPHRD_ARCNET 7 /* ARCnet */
35#define ARPHRD_APPLETLK 8 /* APPLEtalk */
36#define ARPHRD_DLCI 15 /* Frame Relay DLCI */
37#define ARPHRD_ATM 19 /* ATM */
38#define ARPHRD_METRICOM 23 /* Metricom STRIP (new IANA id) */
39#define ARPHRD_IEEE1394 24 /* IEEE 1394 IPv4 - RFC 2734 */
40#define ARPHRD_EUI64 27 /* EUI-64 */
41#define ARPHRD_IPSEC 31 /* IPSec tunnel */
42
43/* Dummy types for non ARP hardware */
44#define ARPHRD_SLIP 256
45#define ARPHRD_CSLIP 257
46#define ARPHRD_SLIP6 258
47#define ARPHRD_CSLIP6 259
48#define ARPHRD_RSRVD 260 /* Notional KISS type */
49#define ARPHRD_ADAPT 264
50#define ARPHRD_ROSE 270
51#define ARPHRD_X25 271 /* CCITT X.25 */
52#define ARPHRD_HWX25 272 /* Boards with X.25 in firmware */
53#define ARPHRD_PPP 512
54#define ARPHRD_CISCO 513 /* Cisco HDLC */
55#define ARPHRD_HDLC ARPHRD_CISCO
56#define ARPHRD_LAPB 516 /* LAPB */
57#define ARPHRD_DDCMP 517 /* Digital's DDCMP protocol */
58#define ARPHRD_RAWHDLC 518 /* Raw HDLC */
59
60#define ARPHRD_TUNNEL 768 /* IPIP tunnel */
61#define ARPHRD_TUNNEL6 769 /* IPIP6 tunnel */
62#define ARPHRD_FRAD 770 /* Frame Relay Access Device */
63#define ARPHRD_SKIP 771 /* SKIP vif */
64#define ARPHRD_LOOPBACK 772 /* Loopback device */
65#define ARPHRD_LOCALTLK 773 /* Localtalk device */
66#define ARPHRD_FDDI 774 /* Fiber Distributed Data Interface */
67#define ARPHRD_BIF 775 /* AP1000 BIF */
68#define ARPHRD_SIT 776 /* sit0 device - IPv6-in-IPv4 */
69#define ARPHRD_IPDDP 777 /* IP over DDP tunneller */
70#define ARPHRD_IPGRE 778 /* GRE over IP */
71#define ARPHRD_PIMREG 779 /* PIMSM register interface */
72#define ARPHRD_HIPPI 780 /* High Performance Parallel Interface */
73#define ARPHRD_ASH 781 /* Nexus 64Mbps Ash */
74#define ARPHRD_ECONET 782 /* Acorn Econet */
75#define ARPHRD_IRDA 783 /* Linux-IrDA */
76/* ARP works differently on different FC media .. so */
77#define ARPHRD_FCPP 784 /* Point to point fibrechannel */
78#define ARPHRD_FCAL 785 /* Fibrechannel arbitrated loop */
79#define ARPHRD_FCPL 786 /* Fibrechannel public loop */
80#define ARPHRD_FCFABRIC 787 /* Fibrechannel fabric */
81 /* 787->799 reserved for fibrechannel media types */
82#define ARPHRD_IEEE802_TR 800 /* Magic type ident for TR */
83#define ARPHRD_IEEE80211 801 /* IEEE 802.11 */
84#define ARPHRD_IEEE80211_PRISM 802 /* IEEE 802.11 + Prism2 header */
85
86#define ARPHRD_VOID 0xFFFF /* Void type, nothing is known */
87
88/* ARP protocol opcodes. */
89#define ARPOP_REQUEST 1 /* ARP request */
90#define ARPOP_REPLY 2 /* ARP reply */
91#define ARPOP_RREQUEST 3 /* RARP request */
92#define ARPOP_RREPLY 4 /* RARP reply */
93#define ARPOP_InREQUEST 8 /* InARP request */
94#define ARPOP_InREPLY 9 /* InARP reply */
95#define ARPOP_NAK 10 /* (ATM)ARP NAK */
96
97/* ARP Flag values. */
98#define ATF_COM 0x02 /* completed entry (ha valid) */
99#define ATF_PERM 0x04 /* permanent entry */
100#define ATF_PUBL 0x08 /* publish entry */
101#define ATF_USETRAILERS 0x10 /* has requested trailers */
102#define ATF_NETMASK 0x20 /* want to use a netmask (only
103 for proxy entries) */
104#define ATF_DONTPUB 0x40 /* don't answer this addresses */
105
106#endif /* _WV_IF_ARP_H */