Home
last modified time | relevance | path

Searched refs:p (Results 1 – 7 of 7) sorted by relevance

/inet/
A Dtest_ifindex.c29 struct if_nameindex *idx = if_nameindex (), *p; in do_test() local
43 for (p = idx; p->if_index || p->if_name; ++p) in do_test()
48 printf ("%3d %15s | ", p->if_index, p->if_name); in do_test()
49 printf ("%3d", ni = if_nametoindex (p->if_name)); in do_test()
50 printf ("%15s", if_indextoname (p->if_index, buf)); in do_test()
51 result = (ni != p->if_index || (strcmp (buf, p->if_name))); in do_test()
52 if (ni == p->if_index) in do_test()
55 if (p->if_index == if_nametoindex (buf)) in do_test()
A Dtst-inet6_rth.c12 if (p == NULL) in do_test()
17 else if (inet6_rth_add (p, &in6addr_any) == 0) in do_test()
24 if (p == NULL) in do_test()
29 else if (inet6_rth_add (p, &in6addr_any) != 0) in do_test()
40 if (p == NULL) in do_test()
53 if (inet6_rth_add (p, &tmp) != 0) in do_test()
61 if (inet6_rth_segments (p) != nseg) in do_test()
120 if (p == NULL) in do_test()
133 if (inet6_rth_add (p, &tmp) != 0) in do_test()
141 if (inet6_rth_segments (p) != nseg) in do_test()
[all …]
A Didna_name_classify.c30 const char *p = name; in __idna_name_classify() local
31 const char *end = p + strlen (p) + 1; in __idna_name_classify()
37 size_t result = mbrtowc (&wc, p, end - p, &mbs); in __idna_name_classify()
58 p += result; in __idna_name_classify()
A Dtst-sockaddr.c107 struct sockaddr_storage *p = malloc (sizeof (*p)); in do_test() local
108 if (p == NULL) in do_test()
113 *p = copy; in do_test()
114 const struct sockaddr_in *sinp = (const struct sockaddr_in *)p; in do_test()
118 free (p); in do_test()
A Dtst-ether_aton.c10 char hostname[32], buf[64], *p; in do_test() local
33 p = strchr (buf, '\0'); in do_test()
34 *p++ = ' '; in do_test()
35 strcpy (p, hostname); in do_test()
A Drcmd.c735 while (*p && isspace (*p)) { in __isempty()
736 ++p; in __isempty()
739 return (*p == '\0' || *p == '#') ? 1 : 0 ; in __isempty()
750 char *p; in __validuser2_sa() local
758 p = buf; in __validuser2_sa()
765 for (;*p && !isspace(*p); ++p) { in __validuser2_sa()
766 *p = _tolower (*p); in __validuser2_sa()
770 if (*p == ' ' || *p == '\t') { in __validuser2_sa()
772 for (*p++='\0'; *p && isspace (*p); ++p); in __validuser2_sa()
775 while (*p && !isspace (*p)) in __validuser2_sa()
[all …]
A Dinet6_option.c28 unsigned char *p = CMSG_DATA (cmsg) + cmsg->cmsg_len - CMSG_LEN (0); in add_pad() local
32 *p++ = IP6OPT_PAD1; in add_pad()
36 *p++ = IP6OPT_PADN; in add_pad()
37 *p++ = len - 2; /* Discount the two header bytes. */ in add_pad()
39 memset (p, '\0', len - 2); in add_pad()
40 p += len - 2; in add_pad()

Completed in 11 milliseconds