|  | @@ -147,7 +147,6 @@ int dhcppkt_store ( struct dhcp_packet *dhcppkt, unsigned int tag,
 | 
		
	
		
			
			| 147 | 147 |  		    const void *data, size_t len ) {
 | 
		
	
		
			
			| 148 | 148 |  	struct dhcp_packet_field *field;
 | 
		
	
		
			
			| 149 | 149 |  	void *field_data;
 | 
		
	
		
			
			| 150 |  | -	int rc;
 | 
		
	
		
			
			| 151 | 150 |  
 | 
		
	
		
			
			| 152 | 151 |  	/* If this is a special field, fill it in */
 | 
		
	
		
			
			| 153 | 152 |  	if ( ( field = find_dhcp_packet_field ( tag ) ) != NULL ) {
 | 
		
	
	
		
			
			|  | @@ -163,13 +162,7 @@ int dhcppkt_store ( struct dhcp_packet *dhcppkt, unsigned int tag,
 | 
		
	
		
			
			| 163 | 162 |  	}
 | 
		
	
		
			
			| 164 | 163 |  
 | 
		
	
		
			
			| 165 | 164 |  	/* Otherwise, use the generic options block */
 | 
		
	
		
			
			| 166 |  | -	rc = dhcpopt_store ( &dhcppkt->options, tag, data, len );
 | 
		
	
		
			
			| 167 |  | -
 | 
		
	
		
			
			| 168 |  | -	/* Update our used-length field */
 | 
		
	
		
			
			| 169 |  | -	dhcppkt->len = ( offsetof ( struct dhcphdr, options ) +
 | 
		
	
		
			
			| 170 |  | -			 dhcppkt->options.len );
 | 
		
	
		
			
			| 171 |  | -
 | 
		
	
		
			
			| 172 |  | -	return rc;
 | 
		
	
		
			
			|  | 165 | +	return dhcpopt_store ( &dhcppkt->options, tag, data, len );
 | 
		
	
		
			
			| 173 | 166 |  }
 | 
		
	
		
			
			| 174 | 167 |  
 | 
		
	
		
			
			| 175 | 168 |  /**
 | 
		
	
	
		
			
			|  | @@ -273,11 +266,8 @@ void dhcppkt_init ( struct dhcp_packet *dhcppkt, struct dhcphdr *data,
 | 
		
	
		
			
			| 273 | 266 |  		    size_t len ) {
 | 
		
	
		
			
			| 274 | 267 |  	ref_init ( &dhcppkt->refcnt, NULL );
 | 
		
	
		
			
			| 275 | 268 |  	dhcppkt->dhcphdr = data;
 | 
		
	
		
			
			| 276 |  | -	dhcppkt->max_len = len;
 | 
		
	
		
			
			| 277 | 269 |  	dhcpopt_init ( &dhcppkt->options, &dhcppkt->dhcphdr->options,
 | 
		
	
		
			
			| 278 | 270 |  		       ( len - offsetof ( struct dhcphdr, options ) ) );
 | 
		
	
		
			
			| 279 |  | -	dhcppkt->len = ( offsetof ( struct dhcphdr, options ) +
 | 
		
	
		
			
			| 280 |  | -			 dhcppkt->options.len );
 | 
		
	
		
			
			| 281 | 271 |  	settings_init ( &dhcppkt->settings,
 | 
		
	
		
			
			| 282 | 272 |  			&dhcppkt_settings_operations, &dhcppkt->refcnt, 0 );
 | 
		
	
		
			
			| 283 | 273 |  }
 |