Subversion Repositories HelenOS

Rev

Rev 3912 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3846 mejdrech 1
/*
3912 mejdrech 2
 * Copyright (c) 2009 Lukas Mejdrech
3846 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
3912 mejdrech 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.
3846 mejdrech 35
 *  Names according to the linux src/include/linux/if_arp.h header file.
36
 */
37
 
38
#ifndef __NET_ARP_ARPOP_H__
39
#define __NET_ARP_ARPOP_H__
40
 
4704 mejdrech 41
/** @name ARP operation codes definitions
42
 */
43
/*@{*/
44
 
3846 mejdrech 45
/** REQUEST operation code.
46
 */
47
#define ARPOP_REQUEST       1
48
 
49
/** REPLY operation code.
50
 */
51
#define ARPOP_REPLY     2
52
 
53
/** Reverse request operation code.
54
 */
55
#define ARPOP_RREQUEST      3
56
 
57
/** Reverse reply operation code.
58
 */
59
#define ARPOP_RREPLY        4
60
 
61
/** DRARP-Request operation code.
62
 */
63
#define ARPOP_DRARP_Request     5
64
 
65
/** DRARP-Reply operation code.
66
 */
67
#define ARPOP_DRARP_Reply       6
68
 
69
/** DRARP-Error operation code.
70
 */
71
#define ARPOP_DRARP_Error       7
72
 
73
/** InARP-Request operation code.
74
 */
75
#define ARPOP_InREQUEST     8
76
 
77
/** InARP-Reply operation code.
78
 */
79
#define ARPOP_InREPLY       9
80
 
81
/** ARP-NAK operation code.
82
 */
83
#define ARPOP_NAK       10
84
 
85
/** MARS-Request operation code.
86
 */
87
#define ARPOP_MARS_Request      11
88
 
89
/** MARS-Multi operation code.
90
 */
91
#define ARPOP_MARS_Multi        12
92
 
93
/** MARS-MServ operation code.
94
 */
95
#define ARPOP_MARS_MServ        13
96
 
97
/** MARS-Join operation code.
98
 */
99
#define ARPOP_MARS_Join     14
100
 
101
/** MARS-Leave operation code.
102
 */
103
#define ARPOP_MARS_Leave        15
104
 
105
/** MARS-NAK operation code.
106
 */
107
#define ARPOP_MARS_NAK      16
108
 
109
/** MARS-Unserv operation code.
110
 */
111
#define ARPOP_MARS_Unserv       17
112
 
113
/** MARS-SJoin operation code.
114
 */
115
#define ARPOP_MARS_SJoin        18
116
 
117
/** MARS-SLeave operation code.
118
 */
119
#define ARPOP_MARS_SLeave       19
120
 
121
/** MARS-Grouplist-Request operation code.
122
 */
123
#define ARPOP_MARS_Grouplist_Request        20
124
 
125
/** MARS-Grouplist-Reply operation code.
126
 */
127
#define ARPOP_MARS_Grouplist_Reply      21
128
 
129
/** MARS-Redirect-Map operation code.
130
 */
131
#define ARPOP_MARS_Redirect_Map     22
132
 
133
/** MAPOS-UNARP operation code.
134
 */
135
#define ARPOP_MAPOS_UNARP       23
136
 
4704 mejdrech 137
/*@}*/
138
 
3846 mejdrech 139
#endif
140
 
141
/** @}
142
 */