Commit 29bbec8
committed
Fix DHCPv4 options encoding
For calculating the DHCPv4 length by the "Len" method there is always a
byte added for the end option. But the END option is only set when there
are any options at all. This results in a missing END option in case
there are no options present.
This commit moves the encoding of the END option so it is always set
unconditionally.1 parent 7c36ea3 commit 29bbec8
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
225 | 226 | | |
226 | | - | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
0 commit comments