Changeset e948fde in mainline for uspace/app/nettest1/nettest1.c
- Timestamp:
- 2013-09-29T21:43:49Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5a324d99
- Parents:
- f023251
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nettest1/nettest1.c
rf023251 re948fde 59 59 #define NETTEST1_TEXT "Networking test 1 - sockets" 60 60 61 static uint16_t family = AF_ INET;61 static uint16_t family = AF_NONE; 62 62 static sock_type_t type = SOCK_DGRAM; 63 63 static size_t size = 27; … … 335 335 /* Interpret as a host name */ 336 336 dnsr_hostinfo_t *hinfo = NULL; 337 rc = dnsr_name2host(addr_s, &hinfo, family);337 rc = dnsr_name2host(addr_s, &hinfo, ipver_from_af(family)); 338 338 339 339 if (rc != EOK) { … … 348 348 struct sockaddr_in6 addr6; 349 349 uint16_t af = inet_addr_sockaddr_in(&addr_addr, &addr, &addr6); 350 351 if (family == AF_NONE) 352 family = af; 350 353 351 354 if (af != family) {
Note:
See TracChangeset
for help on using the changeset viewer.