|
257 | 257 | pxIterator = NULL; |
258 | 258 | } |
259 | 259 |
|
260 | | - if(( pxIterator != NULL ) && ( pxIterator->xDHCPData.eDHCPState == pxIterator->xDHCPData.eExpectedState ) ) |
| 260 | + if( ( pxIterator != NULL ) && ( pxIterator->xDHCPData.eDHCPState == pxIterator->xDHCPData.eExpectedState ) ) |
261 | 261 | { |
262 | 262 | /* The second parameter pdTRUE tells to check for a UDP message. */ |
263 | 263 | vDHCPProcessEndPoint( pdFALSE, pdTRUE, pxIterator ); |
|
277 | 277 | { |
278 | 278 | /* Remove it now, destination not found. */ |
279 | 279 | FreeRTOS_ReleaseUDPPayloadBuffer( pucUDPPayload ); |
| 280 | + |
280 | 281 | if( pxIterator == NULL ) |
281 | 282 | { |
282 | 283 | FreeRTOS_printf( ( "vDHCPProcess: Removed a %d-byte message: target not found\n", ( int ) lBytes ) ); |
283 | 284 | } |
284 | 285 | else |
285 | 286 | { |
286 | 287 | FreeRTOS_printf( ( "vDHCPProcess: Wrong state: expected: %d got: %d : ignore\n", |
287 | | - pxIterator->xDHCPData.eExpectedState, pxIterator->xDHCPData.eDHCPState ) ); |
| 288 | + pxIterator->xDHCPData.eExpectedState, pxIterator->xDHCPData.eDHCPState ) ); |
288 | 289 | } |
289 | 290 | } |
290 | 291 | } |
|
497 | 498 | { |
498 | 499 | /* Give up, start again. */ |
499 | 500 | EP_DHCPData.eDHCPState = eInitialWait; |
500 | | - /* Reset expected state so that DHCP packets from |
501 | | - different DHCP servers if available already in the DHCP socket can |
502 | | - be processed */ |
| 501 | + |
| 502 | + /* Reset expected state so that DHCP packets from |
| 503 | + * different DHCP servers if available already in the DHCP socket can |
| 504 | + * be processed */ |
503 | 505 | EP_DHCPData.eExpectedState = eInitialWait; |
504 | 506 | } |
505 | 507 | } |
|
1004 | 1006 | { |
1005 | 1007 | /* Start again. */ |
1006 | 1008 | EP_DHCPData.eDHCPState = eInitialWait; |
1007 | | - /* Reset expected state so that DHCP packets from |
1008 | | - different DHCP servers if available already in the DHCP socket can |
1009 | | - be processed */ |
| 1009 | + |
| 1010 | + /* Reset expected state so that DHCP packets from |
| 1011 | + * different DHCP servers if available already in the DHCP socket can |
| 1012 | + * be processed */ |
1010 | 1013 | EP_DHCPData.eExpectedState = eInitialWait; |
1011 | 1014 | } |
1012 | 1015 | } |
|
0 commit comments