Changeset e948fde in mainline for uspace/lib/c/generic/inet/addr.c


Ignore:
Timestamp:
2013-09-29T21:43:49Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a324d99
Parents:
f023251
Message:

dnsr_name2host should use ip_ver_t instead of AF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/inet/addr.c

    rf023251 re948fde  
    250250}
    251251
     252ip_ver_t ipver_from_af(int af)
     253{
     254        switch (af) {
     255        case AF_NONE:
     256                return ip_any;
     257        case AF_INET:
     258                return ip_v4;
     259        case AF_INET6:
     260                return ip_v6;
     261        default:
     262                assert(false);
     263                return EINVAL;
     264        }
     265}
     266
    252267void inet_naddr_addr(const inet_naddr_t *naddr, inet_addr_t *addr)
    253268{
Note: See TracChangeset for help on using the changeset viewer.