Lines Matching refs:tp
104 unsigned char tmp[INADDRSZ], *tp; in inet_pton4() local
108 tp = tmp; in inet_pton4()
109 *tp = 0; in inet_pton4()
115 unsigned int val = (unsigned int)(*tp * 10) + in inet_pton4()
118 if(saw_digit && *tp == 0) in inet_pton4()
122 *tp = (unsigned char)val; in inet_pton4()
132 *++tp = 0; in inet_pton4()
162 unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local
167 memset((tp = tmp), 0, IN6ADDRSZ); in inet_pton6()
168 endp = tp + IN6ADDRSZ; in inet_pton6()
196 colonp = tp; in inet_pton6()
199 if(tp + INT16SZ > endp) in inet_pton6()
201 *tp++ = (unsigned char) ((val >> 8) & 0xff); in inet_pton6()
202 *tp++ = (unsigned char) (val & 0xff); in inet_pton6()
207 if(ch == '.' && ((tp + INADDRSZ) <= endp) && in inet_pton6()
208 inet_pton4(curtok, tp) > 0) { in inet_pton6()
209 tp += INADDRSZ; in inet_pton6()
216 if(tp + INT16SZ > endp) in inet_pton6()
218 *tp++ = (unsigned char) ((val >> 8) & 0xff); in inet_pton6()
219 *tp++ = (unsigned char) (val & 0xff); in inet_pton6()
226 const ssize_t n = tp - colonp; in inet_pton6()
229 if(tp == endp) in inet_pton6()
235 tp = endp; in inet_pton6()
237 if(tp != endp) in inet_pton6()