Home | History | Annotate | Download | only in net

Lines Matching refs:offset

59  * @v offset		Offset within options block
63 dhcp_option ( struct dhcp_options *options, unsigned int offset ) {
64 return ( ( struct dhcp_option * ) ( options->data + offset ) );
68 * Get offset of a DHCP option
72 * @ret offset Offset within options block
99 * @ret encap_offset Offset of encapsulating DHCP option
100 * @ret offset Offset of DHCP option, or negative error
107 * will be filled in with the offset of the encapsulating option.
119 int offset = 0;
133 option = dhcp_option ( options, offset );
144 return offset;
153 return offset;
159 *encap_offset = offset;
163 offset += DHCP_OPTION_HEADER_LEN;
166 offset += option_len;
176 * @v offset Offset of option to resize
177 * @v encap_offset Offset of encapsulating offset (or -ve for none)
184 int offset, int encap_offset,
233 option = dhcp_option ( options, offset );
250 * @ret offset Offset of DHCP option, or negative error
264 int offset;
282 offset = find_dhcp_option_with_encap ( options, tag, &encap_offset );
283 if ( offset >= 0 ) {
284 old_len = dhcp_option_len ( dhcp_option ( options, offset ) );
304 if ( offset < 0 )
305 offset = creation_offset;
308 if ( ( rc = resize_dhcp_option ( options, offset, encap_offset,
315 option = dhcp_option ( options, offset );
328 return offset;
342 int offset;
344 offset = set_dhcp_option ( options, tag, data, len, 0 );
345 if ( offset < 0 )
346 return offset;
361 int offset;
363 offset = set_dhcp_option ( options, tag, data, len, 1 );
364 if ( offset < 0 )
365 return offset;
380 int offset;
384 offset = find_dhcp_option_with_encap ( options, tag, NULL );
385 if ( offset < 0 )
386 return offset;
388 option = dhcp_option ( options, offset );
407 int offset = 0;
414 option = dhcp_option ( options, offset );
419 offset += option_len;
421 options->len = offset;