Lines Matching defs:type
66 * beginning (the value y in the alignment term "xn + y"), the type
82 inet6_option_init(void *bp, struct cmsghdr **cmsgp, int type)
87 if (!is_ipv6_hopopts(type) && !is_ipv6_dstopts(type))
91 ch->cmsg_type = type;
169 * option type field that starts the option on success, or NULL on an
235 * the 8-bit option type field (which is followed by the 8-bit option
291 * except this function lets the caller specify the option type to be
294 * Note: RFC 2292 says the type of tptrp is u_int8_t *, but we think
295 * it's a typo. The variable should be type of u_int8_t **.
298 inet6_option_find(const struct cmsghdr *cmsg, u_int8_t **tptrp, int type)
332 if (*optp == type) {
358 /* is there enough space to store type and len? */
409 inet6_opt_append(void *extbuf, socklen_t extlen, int offset, u_int8_t type,
415 * The option type must have a value from 2 to 255, inclusive.
418 if (type < 2)
438 currentlen += 2 + len; /* 2 means "type + len" */
464 *optp++ = type;
556 inet6_opt_find(void *extbuf, socklen_t extlen, int offset, u_int8_t type,
583 if (*optp == type) { /* found */