1 | /*
|
---|
2 | * Copyright (c) 2009 Lukas Mejdrech
|
---|
3 | * All rights reserved.
|
---|
4 | *
|
---|
5 | * Redistribution and use in source and binary forms, with or without
|
---|
6 | * modification, are permitted provided that the following conditions
|
---|
7 | * are met:
|
---|
8 | *
|
---|
9 | * - Redistributions of source code must retain the above copyright
|
---|
10 | * notice, this list of conditions and the following disclaimer.
|
---|
11 | * - Redistributions in binary form must reproduce the above copyright
|
---|
12 | * notice, this list of conditions and the following disclaimer in the
|
---|
13 | * documentation and/or other materials provided with the distribution.
|
---|
14 | * - The name of the author may not be used to endorse or promote products
|
---|
15 | * derived from this software without specific prior written permission.
|
---|
16 | *
|
---|
17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
---|
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
---|
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
---|
20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
---|
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
---|
22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
---|
23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
---|
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
---|
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
---|
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
---|
27 | */
|
---|
28 |
|
---|
29 | /** @addtogroup arp
|
---|
30 | * @{
|
---|
31 | */
|
---|
32 |
|
---|
33 | /** @file
|
---|
34 | * ARP operation codes according to the on-line IANA - Address Resolution Protocol (ARP) Parameters - <http://www.iana.org/assignments/arp-parameters/arp-parameters.xml>, cited January 14 2009.
|
---|
35 | */
|
---|
36 |
|
---|
37 | #ifndef __NET_ARP_ARPOP_H__
|
---|
38 | #define __NET_ARP_ARPOP_H__
|
---|
39 |
|
---|
40 | /** @name ARP operation codes definitions
|
---|
41 | */
|
---|
42 | /*@{*/
|
---|
43 |
|
---|
44 | /** REQUEST operation code.
|
---|
45 | */
|
---|
46 | #define ARPOP_REQUEST 1
|
---|
47 |
|
---|
48 | /** REPLY operation code.
|
---|
49 | */
|
---|
50 | #define ARPOP_REPLY 2
|
---|
51 |
|
---|
52 | /** Reverse request operation code.
|
---|
53 | */
|
---|
54 | #define ARPOP_RREQUEST 3
|
---|
55 |
|
---|
56 | /** Reverse reply operation code.
|
---|
57 | */
|
---|
58 | #define ARPOP_RREPLY 4
|
---|
59 |
|
---|
60 | /** DRARP-Request operation code.
|
---|
61 | */
|
---|
62 | #define ARPOP_DRARP_Request 5
|
---|
63 |
|
---|
64 | /** DRARP-Reply operation code.
|
---|
65 | */
|
---|
66 | #define ARPOP_DRARP_Reply 6
|
---|
67 |
|
---|
68 | /** DRARP-Error operation code.
|
---|
69 | */
|
---|
70 | #define ARPOP_DRARP_Error 7
|
---|
71 |
|
---|
72 | /** InARP-Request operation code.
|
---|
73 | */
|
---|
74 | #define ARPOP_InREQUEST 8
|
---|
75 |
|
---|
76 | /** InARP-Reply operation code.
|
---|
77 | */
|
---|
78 | #define ARPOP_InREPLY 9
|
---|
79 |
|
---|
80 | /** ARP-NAK operation code.
|
---|
81 | */
|
---|
82 | #define ARPOP_NAK 10
|
---|
83 |
|
---|
84 | /** MARS-Request operation code.
|
---|
85 | */
|
---|
86 | #define ARPOP_MARS_Request 11
|
---|
87 |
|
---|
88 | /** MARS-Multi operation code.
|
---|
89 | */
|
---|
90 | #define ARPOP_MARS_Multi 12
|
---|
91 |
|
---|
92 | /** MARS-MServ operation code.
|
---|
93 | */
|
---|
94 | #define ARPOP_MARS_MServ 13
|
---|
95 |
|
---|
96 | /** MARS-Join operation code.
|
---|
97 | */
|
---|
98 | #define ARPOP_MARS_Join 14
|
---|
99 |
|
---|
100 | /** MARS-Leave operation code.
|
---|
101 | */
|
---|
102 | #define ARPOP_MARS_Leave 15
|
---|
103 |
|
---|
104 | /** MARS-NAK operation code.
|
---|
105 | */
|
---|
106 | #define ARPOP_MARS_NAK 16
|
---|
107 |
|
---|
108 | /** MARS-Unserv operation code.
|
---|
109 | */
|
---|
110 | #define ARPOP_MARS_Unserv 17
|
---|
111 |
|
---|
112 | /** MARS-SJoin operation code.
|
---|
113 | */
|
---|
114 | #define ARPOP_MARS_SJoin 18
|
---|
115 |
|
---|
116 | /** MARS-SLeave operation code.
|
---|
117 | */
|
---|
118 | #define ARPOP_MARS_SLeave 19
|
---|
119 |
|
---|
120 | /** MARS-Grouplist-Request operation code.
|
---|
121 | */
|
---|
122 | #define ARPOP_MARS_Grouplist_Request 20
|
---|
123 |
|
---|
124 | /** MARS-Grouplist-Reply operation code.
|
---|
125 | */
|
---|
126 | #define ARPOP_MARS_Grouplist_Reply 21
|
---|
127 |
|
---|
128 | /** MARS-Redirect-Map operation code.
|
---|
129 | */
|
---|
130 | #define ARPOP_MARS_Redirect_Map 22
|
---|
131 |
|
---|
132 | /** MAPOS-UNARP operation code.
|
---|
133 | */
|
---|
134 | #define ARPOP_MAPOS_UNARP 23
|
---|
135 |
|
---|
136 | /*@}*/
|
---|
137 |
|
---|
138 | #endif
|
---|
139 |
|
---|
140 | /** @}
|
---|
141 | */
|
---|