Changeset 3e66428 in mainline for uspace/app/nettest3
- Timestamp:
- 2013-06-20T14:10:51Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 19a4f73
- Parents:
- b49d872
- File:
-
- 1 edited
-
uspace/app/nettest3/nettest3.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nettest3/nettest3.c
rb49d872 r3e66428 83 83 return rc; 84 84 } 85 86 addr.sin_addr.s_addr = host2uint32_t_be(hinfo->addr.ipv4); 87 addr.sin_family = AF_INET; 85 86 rc = inet2_addr_sockaddr_in(&hinfo->addr, &addr); 87 if (rc != EOK) { 88 printf("Host '%s' not resolved as IPv4 address.\n", argv[1]); 89 return rc; 90 } 88 91 } 89 92 printf("result: rc=%d, family=%d, addr=%x\n", rc,
Note:
See TracChangeset
for help on using the changeset viewer.
