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