Changeset e948fde in mainline for uspace/app/dnsres/dnsres.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/dnsres/dnsres.c
rf023251 re948fde 54 54 } 55 55 56 uint16_t af;56 uint16_t ver; 57 57 char *hname; 58 58 … … 63 63 } 64 64 65 af = AF_INET;65 ver = ip_v4; 66 66 hname = argv[2]; 67 67 } else if (str_cmp(argv[1], "-6") == 0) { … … 71 71 } 72 72 73 af = AF_INET6;73 ver = ip_v6; 74 74 hname = argv[2]; 75 75 } else { 76 af = 0;76 ver = ip_any; 77 77 hname = argv[1]; 78 78 } 79 79 80 80 dnsr_hostinfo_t *hinfo; 81 int rc = dnsr_name2host(hname, &hinfo, af);81 int rc = dnsr_name2host(hname, &hinfo, ver); 82 82 if (rc != EOK) { 83 83 printf("%s: Error resolving '%s'.\n", NAME, hname);
Note:
See TracChangeset
for help on using the changeset viewer.