Lines Matching refs:offset

69 inet6_opt_append(void *extbuf, socklen_t extlen, int offset, uint8_t type,  in inet6_opt_append()  argument
92 remainder = (offset + 2 + len) % align; in inet6_opt_append()
99 endlen = offset + padbytes + 2 + len; in inet6_opt_append()
108 p = (uint8_t *)extbuf + offset; in inet6_opt_append()
141 inet6_opt_finish(void *extbuf, socklen_t extlen, int offset) in inet6_opt_finish() argument
156 padbytes = 8 - (offset % 8); in inet6_opt_finish()
160 if ((offset + padbytes > extlen) || !extbuf) { in inet6_opt_finish()
164 return (offset + padbytes); in inet6_opt_finish()
168 p = (uint8_t *)extbuf + offset; in inet6_opt_finish()
187 return (offset + padbytes); in inet6_opt_finish()
195 inet6_opt_set_val(void *databuf, int offset, void *val, socklen_t vallen) in inet6_opt_set_val() argument
197 memcpy((uint8_t *)databuf + offset, val, vallen); in inet6_opt_set_val()
198 return (offset + vallen); in inet6_opt_set_val()
210 inet6_opt_next(void *extbuf, socklen_t extlen, int offset, uint8_t *typep, in inet6_opt_next() argument
224 if (offset == 0) { in inet6_opt_next()
225 offset = 2; in inet6_opt_next()
229 p = (uint8_t *)extbuf + offset; in inet6_opt_next()
271 inet6_opt_find(void *extbuf, socklen_t extlen, int offset, uint8_t type, in inet6_opt_find() argument
277 offset = inet6_opt_next(extbuf, extlen, offset, &newtype, lenp, in inet6_opt_find()
280 if (offset == -1) in inet6_opt_find()
285 return (offset); in inet6_opt_find()
294 inet6_opt_get_val(void *databuf, int offset, void *val, socklen_t vallen) in inet6_opt_get_val() argument
296 memcpy(val, (uint8_t *)databuf + offset, vallen); in inet6_opt_get_val()
297 return (offset + vallen); in inet6_opt_get_val()