Changeset e948fde in mainline for uspace/app/nettest2/nettest2.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/nettest2/nettest2.c

    rf023251 re948fde  
    6060#define NETTEST2_TEXT  "Networking test 2 - transfer"
    6161
    62 static uint16_t family = PF_INET;
     62static uint16_t family = AF_NONE;
    6363static size_t size = 28;
    6464static bool verbose = false;
     
    271271                /* Interpret as a host name */
    272272                dnsr_hostinfo_t *hinfo = NULL;
    273                 rc = dnsr_name2host(addr_s, &hinfo, family);
     273                rc = dnsr_name2host(addr_s, &hinfo, ipver_from_af(family));
    274274               
    275275                if (rc != EOK) {
     
    284284        struct sockaddr_in6 addr6;
    285285        uint16_t af = inet_addr_sockaddr_in(&addr_addr, &addr, &addr6);
     286       
     287        if (family == AF_NONE)
     288                family = af;
    286289       
    287290        if (af != family) {
Note: See TracChangeset for help on using the changeset viewer.