/inet/ |
A D | tst-checks.c | 10 char buf[16]; in do_test() local 20 buf[i] = 1; in do_test() 27 buf[i] = 0; in do_test() 35 buf[15] = 1; in do_test() 41 buf[15] = 0; in do_test() 43 buf[0] = 0xfe; in do_test() 44 buf[1] = 0x80; in do_test() 60 buf[0] = 0xff; in do_test() 61 buf[1] = 0x80; in do_test() 67 buf[0] = 0xfe; in do_test() [all …]
|
A D | tst-getni2.c | 16 char buf[1000]; in do_test() local 17 buf[0] = '\0'; in do_test() 18 int r = getnameinfo((struct sockaddr *) &s, sizeof (s), buf, sizeof (buf), in do_test() 20 printf("r = %d, buf = \"%s\"\n", r, buf); in do_test() 27 buf[0] = '\0'; in do_test() 28 r = getnameinfo((struct sockaddr *) &s, sizeof (s), buf, sizeof (buf), in do_test() 30 printf("r = %d, buf = \"%s\"\n", r, buf); in do_test()
|
A D | ether_ntoa_r.c | 24 ether_ntoa_r (const struct ether_addr *addr, char *buf) in ether_ntoa_r() argument 26 sprintf (buf, "%x:%x:%x:%x:%x:%x", in ether_ntoa_r() 30 return buf; in ether_ntoa_r()
|
A D | tst-ether_line.c | 10 char buf[1000]; in do_test() local 11 if (ether_line ("00:01:02:03:04:05 aaaaa \n", &a, buf) != 0) in do_test() 31 printf (" \"%s\"\n", buf); in do_test() 32 res |= strcmp (buf, "aaaaa") != 0; in do_test()
|
A D | tst-ether_aton.c | 10 char hostname[32], buf[64], *p; in do_test() local 32 ether_ntoa_r (&val, buf); in do_test() 33 p = strchr (buf, '\0'); in do_test() 38 buf); in do_test() 40 result |= strcmp ("0:c0:f0:46:5f:97 host.ether.com", buf) != 0; in do_test()
|
A D | test_ifindex.c | 45 char buf[IFNAMSIZ]; in do_test() local 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() 55 if (p->if_index == if_nametoindex (buf)) in do_test()
|
A D | bug-if1.c | 28 char buf[IF_NAMESIZE]; in do_test() local 30 char *cp = if_indextoname (0, buf); in do_test()
|
A D | rcmd.c | 196 char *buf = NULL; in rcmd_af() local 207 free (buf); in rcmd_af() 219 free (buf); in rcmd_af() 256 free (buf); in rcmd_af() 275 free (buf); in rcmd_af() 307 free (buf); in rcmd_af() 324 char *buf = NULL; in rcmd_af() local 333 free (buf); in rcmd_af() 758 p = buf; in __validuser2_sa() 783 if (*buf == '\0') in __validuser2_sa() [all …]
|
A D | tst-inet6_rth.c | 10 char buf[1000]; in do_test() local 11 void *p = inet6_rth_init (buf, 24, IPV6_RTHDR_TYPE_0, 0); in do_test() 23 p = inet6_rth_init (buf, 24, IPV6_RTHDR_TYPE_0, 1); in do_test() 39 p = inet6_rth_init (buf, sizeof (buf), IPV6_RTHDR_TYPE_0, nseg); in do_test() 119 p = inet6_rth_init (buf, sizeof (buf), IPV6_RTHDR_TYPE_0, nseg); in do_test()
|
A D | test-ifaddrs.c | 30 addr_string (struct sockaddr *sa, char *buf, size_t size) in addr_string() argument 39 buf, size); in addr_string() 42 buf, size); in addr_string()
|
A D | ruserpass.c | 95 char *hdir, *buf, *tmp; in ruserpass() local 109 buf = alloca (strlen (hdir) + 8); in ruserpass() 111 __stpcpy (__stpcpy (buf, hdir), "/.netrc"); in ruserpass() 112 cfile = fopen(buf, "rce"); in ruserpass() 115 warn("%s", buf); in ruserpass()
|
A D | test-inet6_opt.c | 105 char buf[8]; in decode_inet6_opt() local 176 offset = inet6_opt_get_val (db, 0, buf, 7); in decode_inet6_opt() 177 if (offset != len || memcmp (buf, "abcdefg", 7) != 0) in decode_inet6_opt() 179 buf[7] = '\0'; in decode_inet6_opt() 180 printf ("OPT_Z's buf \"%s\" != \"abcdefg\"\n", buf); in decode_inet6_opt()
|