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