Home
last modified time | relevance | path

Searched refs:len (Results 1 – 9 of 9) sorted by relevance

/inet/
A Dgethstbyad_r.c25 #define ADD_PARAMS const void *addr, socklen_t len, int type
26 #define ADD_VARIABLES addr, len, type
32 if (len == sizeof (struct in6_addr) \
A Dgethstbyad.c24 #define ADD_PARAMS const void *addr, socklen_t len, int type
25 #define ADD_VARIABLES addr, len, type
A Dtest-inet6_opt.c99 socklen_t len; in decode_inet6_opt() local
107 while ((cl = inet6_opt_next (eb, el, cl, &type, &len, &db)) != -1) in decode_inet6_opt()
116 if (len != 12) in decode_inet6_opt()
118 printf ("OPT_X's length %d != 12\n", len); in decode_inet6_opt()
128 if (offset != len || val8 != 0x0102030405060708LL) in decode_inet6_opt()
141 if (len != 7) in decode_inet6_opt()
143 printf ("OPT_Y's length %d != 7\n", len); in decode_inet6_opt()
159 if (offset != len || val4 != 0x01020304) in decode_inet6_opt()
171 if (len != 7) in decode_inet6_opt()
173 printf ("OPT_Z's length %d != 7\n", len); in decode_inet6_opt()
[all …]
A Dinet6_option.c26 add_pad (struct cmsghdr *cmsg, int len) in add_pad() argument
30 if (len == 1) in add_pad()
33 else if (len != 0) 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()
44 cmsg->cmsg_len += len; in add_pad()
148 int len = typep[0] == IP6OPT_PAD1 ? 1 : typep[1] + 2; in inet6_option_append() local
151 uint8_t *ptr = option_alloc (cmsg, len, multx, plusy); in inet6_option_append()
157 memcpy (ptr, typep, len); in inet6_option_append()
A Dinet6_opt.c80 socklen_t len, uint8_t align, void **databufp) in inet6_opt_append() argument
91 if (len > 255) in inet6_opt_append()
96 if (align == 0 || align > 8 || (align & (align - 1)) != 0 || align > len) in inet6_opt_append()
110 if (data_offset + npad + len > extlen) in inet6_opt_append()
121 opt->ip6o_len = len; in inet6_opt_append()
128 return offset + sizeof (struct ip6_opt) + len; in inet6_opt_append()
A Dinet6_rth.c62 socklen_t len = (sizeof (struct ip6_rthdr0) in inet6_rth_init() local
64 if (len > bp_len) in inet6_rth_init()
68 memset (bp, '\0', len); in inet6_rth_init()
A Drexec.c140 { socklen_t len = sizeof (from); in rexec_af() local
142 &len)); in rexec_af()
A Drcmd.c243 socklen_t len = ai->ai_addrlen; in rcmd_af() local
280 s3 = TEMP_FAILURE_RETRY (accept(s2, &from.sa, &len)); in rcmd_af()
375 size_t len; in rresvport_af() local
380 len = sizeof(struct sockaddr_in); in rresvport_af()
384 len = sizeof(struct sockaddr_in6); in rresvport_af()
398 ss.generic.__ss_len = len; in rresvport_af()
411 if (__bind(s, &ss.generic, len) >= 0) in rresvport_af()
A Dgetnameinfo.c303 size_t len = strlen (h_name) + 1; in gni_host_inet_name() local
304 if (len > hostlen) in gni_host_inet_name()
306 memcpy (host, h_name, len); in gni_host_inet_name()

Completed in 11 milliseconds