Changeset e948fde in mainline for uspace/app/nettest1/nettest1.c


Ignore:
Timestamp:
2013-09-29T21:43:49Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a324d99
Parents:
f023251
Message:

dnsr_name2host should use ip_ver_t instead of AF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/nettest1/nettest1.c

    rf023251 re948fde  
    5959#define NETTEST1_TEXT  "Networking test 1 - sockets"
    6060
    61 static uint16_t family = AF_INET;
     61static uint16_t family = AF_NONE;
    6262static sock_type_t type = SOCK_DGRAM;
    6363static size_t size = 27;
     
    335335                /* Interpret as a host name */
    336336                dnsr_hostinfo_t *hinfo = NULL;
    337                 rc = dnsr_name2host(addr_s, &hinfo, family);
     337                rc = dnsr_name2host(addr_s, &hinfo, ipver_from_af(family));
    338338               
    339339                if (rc != EOK) {
     
    348348        struct sockaddr_in6 addr6;
    349349        uint16_t af = inet_addr_sockaddr_in(&addr_addr, &addr, &addr6);
     350       
     351        if (family == AF_NONE)
     352                family = af;
    350353       
    351354        if (af != family) {
Note: See TracChangeset for help on using the changeset viewer.