Commit 6079636
committed
dns: add support for Legacy Unicast Responses
As per RFC 6762 Section 6.7 (Legacy Unicast Responses)
"If the source UDP port in a received Multicast DNS query is not port
5353, this indicates that the querier originating the query is a
simple resolver such as described in Section 5.1, "One-Shot Multicast
DNS Queries", which does not fully implement all of Multicast DNS.
In this case, the Multicast DNS responder MUST send a UDP response
directly back to the querier, via unicast, to the query packet's
source IP address and port. This unicast response MUST be a
conventional unicast response as would be generated by a conventional
Unicast DNS server; for example, it MUST repeat the query ID and the
question given in the query message."
Therefore, umdns should not ignore DNS questions coming from non-
multicast sources, and also provide question section which is not
usually provided in mDNS responses.
Signed-off-by: Mohd Husaam Mehdi <husaam.mehdi@iopsys.eu>1 parent 1d513b8 commit 6079636
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
| 396 | + | |
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
400 | 407 | | |
401 | 408 | | |
402 | 409 | | |
| |||
465 | 472 | | |
466 | 473 | | |
467 | 474 | | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | 475 | | |
473 | 476 | | |
474 | 477 | | |
| |||
0 commit comments