File tree Expand file tree Collapse file tree 3 files changed +0
-34
lines changed Expand file tree Collapse file tree 3 files changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -64,17 +64,6 @@ menu "mDNS"
64
64
Configures timeout for adding a new mDNS service. Adding a service
65
65
fails if could not be completed within this time.
66
66
67
- config MDNS_STRICT_MODE
68
- bool "mDNS strict mode"
69
- default "n"
70
- help
71
- Configures strict mode. Set this to 1 for the mDNS library to strictly follow the RFC6762:
72
- Currently the only strict feature: Do not repeat original questions in response packets
73
- (defined in RFC6762 sec. 6).
74
- Default configuration is 0, i.e. non-strict mode, since some implementations,
75
- such as lwIP mDNS resolver (used by standard POSIX API like getaddrinfo, gethostbyname)
76
- could not correctly resolve advertised names.
77
-
78
67
config MDNS_TIMER_PERIOD_MS
79
68
int "mDNS timer period (ms)"
80
69
range 10 10000
Original file line number Diff line number Diff line change @@ -1728,7 +1728,6 @@ static void _mdns_create_answer_from_parsed_packet(mdns_parsed_packet_t *parsed_
1728
1728
return ;
1729
1729
}
1730
1730
1731
- #ifdef MDNS_REPEAT_QUERY_IN_RESPONSE
1732
1731
if (parsed_packet -> src_port != MDNS_SERVICE_PORT && // Repeat the queries only for "One-Shot mDNS queries"
1733
1732
(q -> type == MDNS_TYPE_ANY || q -> type == MDNS_TYPE_A || q -> type == MDNS_TYPE_AAAA )) {
1734
1733
mdns_out_question_t * out_question = malloc (sizeof (mdns_out_question_t ));
@@ -1751,7 +1750,6 @@ static void _mdns_create_answer_from_parsed_packet(mdns_parsed_packet_t *parsed_
1751
1750
out_question -> own_dynamic_memory = true;
1752
1751
queueToEnd (mdns_out_question_t , packet -> questions , out_question );
1753
1752
}
1754
- #endif // MDNS_REPEAT_QUERY_IN_RESPONSE
1755
1753
if (q -> unicast ) {
1756
1754
unicast = true;
1757
1755
}
Original file line number Diff line number Diff line change 21
21
#define _mdns_dbg_printf (...) printf(__VA_ARGS__)
22
22
#endif
23
23
24
- /** mDNS strict mode: Set this to 1 for the mDNS library to strictly follow the RFC6762:
25
- * Strict features:
26
- * - to do not set original questions in response packets per RFC6762, sec 6
27
- *
28
- * The actual configuration is 0, i.e. non-strict mode, since some implementations,
29
- * such as lwIP mdns resolver (used by standard POSIX API like getaddrinfo, gethostbyname)
30
- * could not correctly resolve advertised names.
31
- */
32
- #ifndef CONFIG_MDNS_STRICT_MODE
33
- #define MDNS_STRICT_MODE 0
34
- #else
35
- #define MDNS_STRICT_MODE 1
36
- #endif
37
-
38
- #if !MDNS_STRICT_MODE
39
- /* mDNS responders sometimes repeat queries in responses
40
- * but according to RFC6762, sec 6: Responses MUST NOT contain
41
- * any item in question field */
42
- #define MDNS_REPEAT_QUERY_IN_RESPONSE 1
43
- #endif
44
-
45
24
/** Number of predefined interfaces */
46
25
#ifndef CONFIG_MDNS_PREDEF_NETIF_STA
47
26
#define CONFIG_MDNS_PREDEF_NETIF_STA 0
You can’t perform that action at this time.
0 commit comments