|
47 | 47 |
|
48 | 48 | #if ( ipconfigUSE_DNS != 0 ) |
49 | 49 |
|
50 | | - |
51 | | - #if ( ipconfigUSE_DNS_CACHE == 1 ) || ( ipconfigDNS_USE_CALLBACKS == 1 ) |
| 50 | + #if ( ipconfigIS_ENABLED( ipconfigUSE_DNS_CACHE ) || \ |
| 51 | + ipconfigIS_ENABLED( ipconfigDNS_USE_CALLBACKS ) || \ |
| 52 | + ipconfigIS_ENABLED( ipconfigUSE_MDNS ) || \ |
| 53 | + ipconfigIS_ENABLED( ipconfigUSE_LLMNR ) ) |
52 | 54 |
|
53 | 55 | /** |
54 | 56 | * @brief Read the Name field out of a DNS response packet. |
|
162 | 164 |
|
163 | 165 | return uxIndex; |
164 | 166 | } |
165 | | - #endif /* ipconfigUSE_DNS_CACHE || ipconfigDNS_USE_CALLBACKS */ |
| 167 | + #endif /* ipconfigUSE_DNS_CACHE || ipconfigDNS_USE_CALLBACKS || ipconfigUSE_MDNS || ipconfigUSE_LLMNR */ |
166 | 168 |
|
167 | 169 | /** |
168 | 170 | * @brief Simple routine that jumps over the NAME field of a resource record. |
|
288 | 290 | * for easier access. */ |
289 | 291 |
|
290 | 292 | /* MISRA Ref 11.3.1 [Misaligned access] */ |
291 | | -/* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-113 */ |
| 293 | + /* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-113 */ |
292 | 294 | /* coverity[misra_c_2012_rule_11_3_violation] */ |
293 | 295 | xSet.pxDNSMessageHeader = ( ( DNSMessage_t * ) |
294 | 296 | pucUDPPayloadBuffer ); |
|
358 | 360 | } |
359 | 361 | #endif |
360 | 362 |
|
361 | | - #if ( ipconfigUSE_DNS_CACHE == 1 ) || ( ipconfigDNS_USE_CALLBACKS == 1 ) |
| 363 | + #if ( ipconfigIS_ENABLED( ipconfigUSE_DNS_CACHE ) || \ |
| 364 | + ipconfigIS_ENABLED( ipconfigDNS_USE_CALLBACKS ) || \ |
| 365 | + ipconfigIS_ENABLED( ipconfigUSE_MDNS ) || \ |
| 366 | + ipconfigIS_ENABLED( ipconfigUSE_LLMNR ) ) |
| 367 | + |
362 | 368 | if( x == 0U ) |
363 | 369 | { |
364 | 370 | uxResult = DNS_ReadNameField( &xSet, |
365 | 371 | sizeof( xSet.pcName ) ); |
366 | 372 | ( void ) uxResult; |
367 | 373 | } |
368 | 374 | else |
369 | | - #endif /* ipconfigUSE_DNS_CACHE || ipconfigDNS_USE_CALLBACKS */ |
| 375 | + #endif /* ipconfigUSE_DNS_CACHE || ipconfigDNS_USE_CALLBACKS || ipconfigUSE_MDNS || ipconfigUSE_LLMNR */ |
370 | 376 | { |
371 | 377 | /* Skip the variable length pcName field. */ |
372 | 378 | uxResult = DNS_SkipNameField( xSet.pucByte, |
|
724 | 730 | * fields of the structure. */ |
725 | 731 |
|
726 | 732 | /* MISRA Ref 11.3.1 [Misaligned access] */ |
727 | | -/* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-113 */ |
| 733 | + /* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-113 */ |
728 | 734 | /* coverity[misra_c_2012_rule_11_3_violation] */ |
729 | 735 | pxDNSAnswerRecord = ( ( DNSAnswerRecord_t * ) pxSet->pucByte ); |
730 | 736 |
|
|
877 | 883 | /* Cast the response to DNSAnswerRecord for easy access to fields of the DNS response. */ |
878 | 884 |
|
879 | 885 | /* MISRA Ref 11.3.1 [Misaligned access] */ |
880 | | -/* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-113 */ |
| 886 | + /* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-113 */ |
881 | 887 | /* coverity[misra_c_2012_rule_11_3_violation] */ |
882 | 888 | pxDNSAnswerRecord = ( ( DNSAnswerRecord_t * ) pxSet->pucByte ); |
883 | 889 |
|
|
0 commit comments