Subversion Repositories HelenOS

Rev

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