Changeset e948fde in mainline for uspace/app/nettest2/nettest2.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/nettest2/nettest2.c
rf023251 re948fde 60 60 #define NETTEST2_TEXT "Networking test 2 - transfer" 61 61 62 static uint16_t family = PF_INET;62 static uint16_t family = AF_NONE; 63 63 static size_t size = 28; 64 64 static bool verbose = false; … … 271 271 /* Interpret as a host name */ 272 272 dnsr_hostinfo_t *hinfo = NULL; 273 rc = dnsr_name2host(addr_s, &hinfo, family);273 rc = dnsr_name2host(addr_s, &hinfo, ipver_from_af(family)); 274 274 275 275 if (rc != EOK) { … … 284 284 struct sockaddr_in6 addr6; 285 285 uint16_t af = inet_addr_sockaddr_in(&addr_addr, &addr, &addr6); 286 287 if (family == AF_NONE) 288 family = af; 286 289 287 290 if (af != family) {
Note:
See TracChangeset
for help on using the changeset viewer.