Changeset 02a09ed in mainline for uspace/app/nettest3/nettest3.c


Ignore:
Timestamp:
2013-06-28T20:20:03Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1d24ad3
Parents:
edf0d27
Message:

add basic infrastructure for IPv6 (inactive)
make inet_addr_t a universal address type

File:
1 edited

Legend:

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

    redf0d27 r02a09ed  
    8484                        }
    8585                       
    86                         rc = inet_addr_sockaddr_in(&hinfo->addr, &addr);
    87                         if (rc != EOK) {
     86                        uint16_t af = inet_addr_sockaddr_in(&hinfo->addr, &addr, NULL);
     87                        if (af != AF_INET) {
    8888                                printf("Host '%s' not resolved as IPv4 address.\n", argv[1]);
    8989                                return rc;
Note: See TracChangeset for help on using the changeset viewer.