Lines Matching refs:offset
71 inet6_opt_append(void *extbuf, socklen_t extlen, int offset, uint8_t type, in inet6_opt_append() argument
94 remainder = (offset + 2 + len) % align; in inet6_opt_append()
101 endlen = offset + padbytes + 2 + len; in inet6_opt_append()
110 p = (uint8_t *)extbuf + offset; in inet6_opt_append()
143 inet6_opt_finish(void *extbuf, socklen_t extlen, int offset) in inet6_opt_finish() argument
158 padbytes = 8 - (offset % 8); in inet6_opt_finish()
162 if ((offset + padbytes > extlen) || !extbuf) { in inet6_opt_finish()
166 return (offset + padbytes); in inet6_opt_finish()
170 p = (uint8_t *)extbuf + offset; in inet6_opt_finish()
189 return (offset + padbytes); in inet6_opt_finish()
197 inet6_opt_set_val(void *databuf, int offset, void *val, socklen_t vallen) in inet6_opt_set_val() argument
199 memcpy((uint8_t *)databuf + offset, val, vallen); in inet6_opt_set_val()
200 return (offset + vallen); in inet6_opt_set_val()
212 inet6_opt_next(void *extbuf, socklen_t extlen, int offset, uint8_t *typep, in inet6_opt_next() argument
226 if (offset == 0) { in inet6_opt_next()
227 offset = 2; in inet6_opt_next()
231 p = (uint8_t *)extbuf + offset; in inet6_opt_next()
273 inet6_opt_find(void *extbuf, socklen_t extlen, int offset, uint8_t type, in inet6_opt_find() argument
279 offset = inet6_opt_next(extbuf, extlen, offset, &newtype, lenp, in inet6_opt_find()
282 if (offset == -1) in inet6_opt_find()
287 return (offset); in inet6_opt_find()
296 inet6_opt_get_val(void *databuf, int offset, void *val, socklen_t vallen) in inet6_opt_get_val() argument
298 memcpy(val, (uint8_t *)databuf + offset, vallen); in inet6_opt_get_val()
299 return (offset + vallen); in inet6_opt_get_val()