Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2011 UPB | 3 * Copyright (c) 2011 UPB |
4 * Copyright (c) 2017 NITK Surathkal | 4 * Copyright (c) 2017 NITK Surathkal |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or modify | 6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License version 2 as | 7 * it under the terms of the GNU General Public License version 2 as |
8 * published by the Free Software Foundation; | 8 * published by the Free Software Foundation; |
9 * | 9 * |
10 * This program is distributed in the hope that it will be useful, | 10 * This program is distributed in the hope that it will be useful, |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
145 * \return The transaction id | 145 * \return The transaction id |
146 */ | 146 */ |
147 uint32_t GetTran (void) const; | 147 uint32_t GetTran (void) const; |
148 | 148 |
149 /** | 149 /** |
150 * \brief Set the time when message is sent | 150 * \brief Set the time when message is sent |
151 */ | 151 */ |
152 void SetTime (); | 152 void SetTime (); |
153 | 153 |
154 /** | 154 /** |
155 * \brief Set the Mac48Address of the device | 155 * \brief Set the Address of the device |
156 * \param addr Mac48Address of the device | 156 * \param addr Address of the device |
157 */ | 157 */ |
158 void SetChaddr (Address addr); | 158 void SetChaddr (Address addr); |
159 | 159 |
160 /** | 160 /** |
161 * \brief Get the Mac48Address of the client | 161 * \brief Get the Address of the client |
162 * \return Mac48Address of the client | 162 * \return Address of the client |
163 */ | 163 */ |
164 Address GetChaddr (void); | 164 Address GetChaddr (void); |
165 | 165 |
166 /** | 166 /** |
167 * \brief Set the IPv4Address of the client | 167 * \brief Set the IPv4Address of the client |
168 * \param addr The client Ipv4Address | 168 * \param addr The client Ipv4Address |
169 */ | 169 */ |
170 void SetYiaddr (Ipv4Address addr); | 170 void SetYiaddr (Ipv4Address addr); |
171 | 171 |
172 /** | 172 /** |
173 * \brief Get the IPv4Address of the client | 173 * \brief Get the IPv4Address of the client |
174 * \return IPv4Address of the client | 174 * \return IPv4Address of the client |
175 */ | 175 */ |
176 Ipv4Address GetYiaddr (void) const; | 176 Ipv4Address GetYiaddr (void) const; |
177 | 177 |
178 /** | 178 /** |
179 * \brief Set the DHCP server information | 179 * \brief Set the DHCP server information |
180 * \param addr IPv4Address of the server | 180 * \param addr IPv4Address of the server |
181 */ | 181 */ |
182 void SetDhcps (Ipv4Address addr); | 182 void SetDhcps (Ipv4Address addr); |
183 | 183 |
184 /** | 184 /** |
185 * \brief Get the information about the DHCP server | 185 * \brief Get the information about the DHCP server |
186 * \return IPv4Address of DHCP server | 186 * \return IPv4Address of DHCP server |
187 */ | 187 */ |
188 Ipv4Address GetDhcps (void) const; | 188 Ipv4Address GetDhcps (void) const; |
189 | 189 |
190 /** | 190 /** |
191 * \brief Set the requested Ipv4Address by the client | 191 * \brief Set the Ipv4Address requested by the client |
192 * \param addr Ipv4Address client is requesting for | 192 * \param addr Ipv4Address requested by the client |
193 */ | 193 */ |
194 void SetReq (Ipv4Address addr); | 194 void SetReq (Ipv4Address addr); |
195 | 195 |
196 /** | 196 /** |
197 * \brief Get the IPv4Address requested by the client | 197 * \brief Get the IPv4Address requested by the client |
198 * \return IPv4Address requested by the client | 198 * \return IPv4Address requested by the client |
199 */ | 199 */ |
200 Ipv4Address GetReq (void) const; | 200 Ipv4Address GetReq (void) const; |
201 | 201 |
202 /** | 202 /** |
203 * \brief Set the mask of the IPv4Address | 203 * \brief Set the mask of the IPv4Address |
204 * \param addr 32 bit mask | 204 * \param addr 32 bit mask |
205 */ | 205 */ |
206 void SetMask (uint32_t addr); | 206 void SetMask (uint32_t addr); |
207 | 207 |
208 /** | 208 /** |
209 * \brief Return the mask of the network | 209 * \brief Return the mask of the network |
210 * \return 32 bit mask | 210 * \return 32 bit mask |
211 */ | 211 */ |
212 uint32_t GetMask (void) const; | 212 uint32_t GetMask (void) const; |
213 | 213 |
214 /** | 214 /** |
215 * \brief Set the mask of the IPv4Address | 215 * \brief Set the Ipv4Address of gateway to be used |
216 * \param addr 32 bit mask | 216 * \param addr The Ipv4Address of the gateway |
217 */ | 217 */ |
218 void SetRouter (Ipv4Address addr); | 218 void SetRouter (Ipv4Address addr); |
219 | 219 |
220 /** | 220 /** |
221 * \brief Return the mask of the network | 221 * \brief Return the Ipv4Address of gateway to be used |
222 * \return 32 bit mask | 222 * \return The Ipv4Address of the gateway |
223 */ | 223 */ |
Tommaso Pecorella
2017/01/13 00:43:32
Wrong Doxygen description
adadeepak8
2017/01/16 07:47:59
Done.
| |
224 Ipv4Address GetRouter (void) const; | 224 Ipv4Address GetRouter (void) const; |
225 | 225 |
226 /** | 226 /** |
227 * \brief Set the lease time of the IPv4Address | 227 * \brief Set the lease time of the IPv4Address |
228 * \param time 32 bit time | 228 * \param time 32 bit time |
229 */ | 229 */ |
230 void SetLease (uint32_t time); | 230 void SetLease (uint32_t time); |
231 | 231 |
232 /** | 232 /** |
233 * \brief Return the lease time of the IPv4Address | 233 * \brief Return the lease time of the IPv4Address |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
294 uint8_t m_magic_cookie[4]; //!< DHCP Magic Cookie | 294 uint8_t m_magic_cookie[4]; //!< DHCP Magic Cookie |
295 uint32_t m_lease; //!< The lease time of the address | 295 uint32_t m_lease; //!< The lease time of the address |
296 uint32_t m_renew; //!< The renewal time for the client | 296 uint32_t m_renew; //!< The renewal time for the client |
297 uint32_t m_rebind; //!< The rebinding time for the client | 297 uint32_t m_rebind; //!< The rebinding time for the client |
298 bool m_opt[255]; //!< BOOTP option list | 298 bool m_opt[255]; //!< BOOTP option list |
299 }; | 299 }; |
300 | 300 |
301 } // namespace ns3 | 301 } // namespace ns3 |
302 | 302 |
303 #endif /* DHCP_HEADER_H */ | 303 #endif /* DHCP_HEADER_H */ |
LEFT | RIGHT |