Searched refs:afam (Results 1 – 1 of 1) sorted by relevance
94 unsigned short afam=AF_UNSPEC; in decodenetnum() local108 afam = strchr(haddr, ':') ? AF_INET6 : AF_INET; in decodenetnum()115 afam = AF_UNSPEC; in decodenetnum()118 afam = AF_INET; in decodenetnum()121 afam = AF_INET6; in decodenetnum()124 afam = AF_INET; in decodenetnum()138 switch (afam) { in decodenetnum()140 if (inet_pton(afam, haddr, &netnum.sa4.sin_addr) <= 0) in decodenetnum()147 if (inet_pton(afam, haddr, &netnum.sa6.sin6_addr) <= 0) in decodenetnum()161 netnum.sa.sa_family = afam; in decodenetnum()