Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nsapi] Refactor dns-query #2497

Merged
merged 7 commits into from
Aug 26, 2016
Merged

[nsapi] Refactor dns-query #2497

merged 7 commits into from
Aug 26, 2016

Commits on Aug 26, 2016

  1. [nsapi] Refactored dns-query to match style of the rest of the nsapi

    Internal API changes:
    dnsQuery -> nsapi_dns_query
    
    Additionally restructured query code to emit/parse network structures
    in stream form to hopefully document the underlying structure more
    explicitly.
    geky committed Aug 26, 2016
    Configuration menu
    Copy the full SHA
    126df2b View commit details
    Browse the repository at this point in the history
  2. [nsapi] Added support for multiple results in a dns-query

    Internal API changes:
    + nsapi_dns_query_multiple
    
    Note, dns_query_multiple takes a buffer of nsapi_addr_t to fill. This is
    less dynamic than the linked-list method used in linux's gethostbyname,
    but is easier to manage and more constrained.
    geky committed Aug 26, 2016
    Configuration menu
    Copy the full SHA
    6653099 View commit details
    Browse the repository at this point in the history
  3. [nsapi] Added IPv6 support to DNS query

    To avoid complications with unexpected IP versions, the wanted
    IP version was added as an extra argument to DNS query functions
    (defaults to NSAPI_IPv4).
    
    Internal API changes:
    m nsapi_dns_query
    m nsapi_dns_query_multiple
    
    Interestingly, though multiple questions can be encoded in a single
    DNS packet, few, if any, nameservers respect any but the first
    question. This makes support for coelescing DNS queries useless.
    geky committed Aug 26, 2016
    Configuration menu
    Copy the full SHA
    0858491 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dc9ddd4 View commit details
    Browse the repository at this point in the history
  5. [nsapi] Add support for implementation-provided DNS servers

    Support intended for DNS servers provided by DHCP requests.
    geky committed Aug 26, 2016
    Configuration menu
    Copy the full SHA
    f9552dd View commit details
    Browse the repository at this point in the history
  6. [nsapi] Adopted netconn_gethostbyname in the lwip interface

    Provides proper integration with DHCP through lwip
    geky committed Aug 26, 2016
    Configuration menu
    Copy the full SHA
    a3ecdf3 View commit details
    Browse the repository at this point in the history
  7. [nsapi] Restructured nsapi_dns.h to have clear separation between C/C++

    - Separated overloads based on language
    - Removed NSAPI_C_LINKAGE definition
    geky committed Aug 26, 2016
    Configuration menu
    Copy the full SHA
    4ffeec1 View commit details
    Browse the repository at this point in the history